Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|pulse.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|pulse.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007493/0.0007494, allocations: 91.89 kB / 16.04 MB, free: 5.297 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07268/0.07268, allocations: 12.63 MB / 29.41 MB, free: 5.949 MB / 24.77 MB Notification: Performance of FrontEnd - loaded program: time 0.0001834/0.0001834, allocations: 4 kB / 40.28 MB, free: 0.5078 MB / 24.77 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.00524/0.005438, allocations: 2.831 MB / 43.11 MB, free: 5.953 MB / 33.03 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse): time 1.623/1.628, allocations: 277.4 MB / 320.5 MB, free: 10.81 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001814/1.628, allocations: 35.91 kB / 320.6 MB, free: 10.77 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.563e-05/1.628, allocations: 0 / 320.6 MB, free: 10.77 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 1.455e-05/1.629, allocations: 3.938 kB / 320.6 MB, free: 10.77 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.384e-05/1.629, allocations: 0 / 320.6 MB, free: 10.77 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002319/1.629, allocations: 28.91 kB / 320.6 MB, free: 10.74 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.331e-05/1.629, allocations: 39.86 kB / 320.6 MB, free: 10.7 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001155/1.629, allocations: 28 kB / 320.7 MB, free: 10.68 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.398e-05/1.629, allocations: 11.98 kB / 320.7 MB, free: 10.67 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.545e-05/1.629, allocations: 19.52 kB / 320.7 MB, free: 10.65 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.774e-05/1.629, allocations: 0 / 320.7 MB, free: 10.65 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.301e-05/1.629, allocations: 4 kB / 320.7 MB, free: 10.65 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.852e-05/1.629, allocations: 11.92 kB / 320.7 MB, free: 10.64 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.379e-05/1.629, allocations: 41.62 kB / 320.8 MB, free: 10.59 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.351e-05/1.629, allocations: 43.81 kB / 320.8 MB, free: 10.55 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/1.629, allocations: 0 / 320.8 MB, free: 10.55 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.513e-06/1.629, allocations: 0 / 320.8 MB, free: 10.55 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.767e-06/1.629, allocations: 0 / 320.8 MB, free: 10.55 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004542/1.63, allocations: 339.1 kB / 321.1 MB, free: 10.17 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.226e-05/1.63, allocations: 12.03 kB / 321.1 MB, free: 10.16 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.7e-05/1.63, allocations: 0.9375 kB / 321.1 MB, free: 10.16 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001733/1.63, allocations: 176.3 kB / 321.3 MB, free: 9.945 MB / 250.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= pulse.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001681/1.63, allocations: 42.19 kB / 321.4 MB, free: 9.898 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.403e-05/1.63, allocations: 4.375 kB / 321.4 MB, free: 9.895 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002771/1.631, allocations: 128.4 kB / 321.5 MB, free: 9.758 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/1.631, allocations: 4.594 kB / 321.5 MB, free: 9.754 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.697e-06/1.631, allocations: 0 / 321.5 MB, free: 9.754 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.286e-06/1.631, allocations: 0.7812 kB / 321.5 MB, free: 9.754 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.351e-05/1.631, allocations: 19.94 kB / 321.5 MB, free: 9.734 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001538/1.631, allocations: 167.8 kB / 321.7 MB, free: 9.523 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001905/1.631, allocations: 139.7 kB / 321.8 MB, free: 9.359 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.111e-05/1.631, allocations: 29.64 kB / 321.8 MB, free: 9.328 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.776e-06/1.631, allocations: 0 / 321.8 MB, free: 9.328 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.146e-05/1.631, allocations: 36.58 kB / 321.9 MB, free: 9.285 MB / 250.7 MB Notification: Performance of pre-optimization done (n=5): time 9.42e-07/1.631, allocations: 4 kB / 321.9 MB, free: 9.281 MB / 250.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001988/1.631, allocations: 77.56 kB / 322 MB, free: 9.199 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.306e-05/1.631, allocations: 62.03 kB / 322 MB, free: 9.129 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.625e-05/1.631, allocations: 105.8 kB / 322.1 MB, free: 9.016 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.312e-05/1.631, allocations: 29.7 kB / 322.2 MB, free: 8.98 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.504e-05/1.632, allocations: 80.14 kB / 322.2 MB, free: 8.898 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.167e-05/1.632, allocations: 4 kB / 322.2 MB, free: 8.895 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.047e-06/1.632, allocations: 4 kB / 322.2 MB, free: 8.891 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.217e-05/1.632, allocations: 315.5 kB / 322.5 MB, free: 8.574 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.428e-05/1.632, allocations: 8.875 kB / 322.6 MB, free: 8.566 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.146e-05/1.632, allocations: 41.45 kB / 322.6 MB, free: 8.512 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.599e-05/1.632, allocations: 51.19 kB / 322.6 MB, free: 8.449 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/1.632, allocations: 0 / 322.6 MB, free: 8.449 MB / 250.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.588e-05/1.632, allocations: 79.25 kB / 322.7 MB, free: 8.367 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/1.632, allocations: 7.938 kB / 322.7 MB, free: 8.359 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/1.632, allocations: 1.125 kB / 322.7 MB, free: 8.359 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/1.632, allocations: 4 kB / 322.7 MB, free: 8.355 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.277e-05/1.632, allocations: 7.938 kB / 322.7 MB, free: 8.348 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/1.632, allocations: 0.625 kB / 322.7 MB, free: 8.348 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.409e-05/1.632, allocations: 4 kB / 322.7 MB, free: 8.344 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.927e-06/1.632, allocations: 0.6875 kB / 322.7 MB, free: 8.344 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (pulse.startOutput,$CLKPRE.pulse.startOutput,pulse.counter,$CLKPRE.pulse.counter,pulse.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.startOutput,pulse.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.663e-05/1.632, allocations: 132.1 kB / 322.9 MB, free: 8.207 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.108e-05/1.632, allocations: 61.58 kB / 322.9 MB, free: 8.141 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.548e-05/1.632, allocations: 11.95 kB / 322.9 MB, free: 8.125 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/1.632, allocations: 0 / 322.9 MB, free: 8.125 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/1.632, allocations: 0 / 322.9 MB, free: 8.125 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/1.632, allocations: 1.594 kB / 322.9 MB, free: 8.125 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.305e-05/1.632, allocations: 169.9 kB / 323.1 MB, free: 7.91 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/1.632, allocations: 0 / 323.1 MB, free: 7.91 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.618e-06/1.632, allocations: 8 kB / 323.1 MB, free: 7.902 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/1.632, allocations: 10 kB / 323.1 MB, free: 7.895 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.355e-06/1.632, allocations: 0 / 323.1 MB, free: 7.895 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/1.632, allocations: 0 / 323.1 MB, free: 7.895 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/1.632, allocations: 0 / 323.1 MB, free: 7.895 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001151/1.633, allocations: 86.33 kB / 323.2 MB, free: 7.793 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.832e-05/1.633, allocations: 81.11 kB / 323.3 MB, free: 7.695 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.975e-05/1.633, allocations: 7.938 kB / 323.3 MB, free: 7.688 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.378e-05/1.633, allocations: 5.969 kB / 323.3 MB, free: 7.684 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.224e-06/1.633, allocations: 7.875 kB / 323.3 MB, free: 7.676 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/1.633, allocations: 0 / 323.3 MB, free: 7.676 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.127e-05/1.633, allocations: 91.27 kB / 323.4 MB, free: 7.586 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.633, allocations: 1.844 kB / 323.4 MB, free: 7.586 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001681/1.633, allocations: 4 kB / 323.4 MB, free: 7.582 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 (assignClock1.u,assignClock1.y,pulse.y,pulse.counter,pulse.startOutput) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.counter,pulse.startOutput) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.673e-05/1.633, allocations: 99.77 kB / 323.5 MB, free: 7.477 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 9.944e-05/1.633, allocations: 37.45 kB / 323.5 MB, free: 7.441 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/1.633, allocations: 0 / 323.5 MB, free: 7.441 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.11e-07/1.633, allocations: 0 / 323.5 MB, free: 7.441 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006102/1.634, allocations: 0.7239 MB / 324.3 MB, free: 6.695 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000239/1.634, allocations: 137.2 kB / 324.4 MB, free: 6.535 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002348/1.634, allocations: 0.6848 MB / 325.1 MB, free: 5.824 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.271e-05/1.634, allocations: 0 / 325.1 MB, free: 5.824 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.976e-05/1.634, allocations: 11.44 kB / 325.1 MB, free: 5.812 MB / 250.7 MB Notification: Performance of SimCode: time 2.2e-07/1.634, allocations: 3.938 kB / 325.1 MB, free: 5.809 MB / 250.7 MB Notification: Performance of Templates: time 0.002287/1.637, allocations: 0.6477 MB / 325.8 MB, free: 5.168 MB / 250.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches