Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001116/0.001116, allocations: 191.5 kB / 17.43 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 229.5 MB / 247.7 MB, free: 6.301 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008902/0.0008902, allocations: 102.8 kB / 299.9 MB, free: 5.348 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002955/0.0002954, allocations: 8 kB / 360.6 MB, free: 8.492 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3103/0.3106, allocations: 51.42 MB / 412.1 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.00188/0.3126, allocations: 1.153 MB / 413.2 MB, free: 24.76 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002197/0.3128, allocations: 36.59 kB / 413.2 MB, free: 24.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.607e-05/0.3129, allocations: 0 / 413.2 MB, free: 24.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.431e-05/0.3129, allocations: 6.344 kB / 413.2 MB, free: 24.72 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.472e-05/0.313, allocations: 0 / 413.2 MB, free: 24.72 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003102/0.3133, allocations: 27.97 kB / 413.3 MB, free: 24.7 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001011/0.3134, allocations: 35.92 kB / 413.3 MB, free: 24.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001296/0.3136, allocations: 11.94 kB / 413.3 MB, free: 24.65 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.847e-05/0.3136, allocations: 15.92 kB / 413.3 MB, free: 24.63 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.109e-05/0.3137, allocations: 17.12 kB / 413.4 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.522e-05/0.3137, allocations: 7.938 kB / 413.4 MB, free: 24.61 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.383e-05/0.3138, allocations: 0 / 413.4 MB, free: 24.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.792e-05/0.3138, allocations: 12.56 kB / 413.4 MB, free: 24.6 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.528e-05/0.3139, allocations: 41.62 kB / 413.4 MB, free: 24.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001029/0.314, allocations: 36.48 kB / 413.5 MB, free: 24.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.314, allocations: 1.25 kB / 413.5 MB, free: 24.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.314, allocations: 0 / 413.5 MB, free: 24.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.314, allocations: 0 / 413.5 MB, free: 24.52 MB / 298.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.0005377/0.3146, allocations: 341.6 kB / 413.8 MB, free: 24.13 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.143e-05/0.3146, allocations: 9.25 kB / 413.8 MB, free: 24.12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.516e-05/0.3147, allocations: 4.938 kB / 413.8 MB, free: 24.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002445/0.3149, allocations: 180.3 kB / 414 MB, free: 23.91 MB / 298.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.0001834/0.3151, allocations: 39.2 kB / 414 MB, free: 23.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.558e-05/0.3152, allocations: 4.359 kB / 414 MB, free: 23.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000375/0.3156, allocations: 127.8 kB / 414.1 MB, free: 23.72 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.3156, allocations: 3.938 kB / 414.1 MB, free: 23.72 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.508e-05/0.3156, allocations: 4 kB / 414.2 MB, free: 23.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.3156, allocations: 4 kB / 414.2 MB, free: 23.71 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.112e-05/0.3157, allocations: 15.98 kB / 414.2 MB, free: 23.7 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001555/0.3159, allocations: 165.6 kB / 414.3 MB, free: 23.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000228/0.3161, allocations: 147.7 kB / 414.5 MB, free: 23.31 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.322e-05/0.3162, allocations: 24.84 kB / 414.5 MB, free: 23.29 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.3e-05/0.3162, allocations: 0 / 414.5 MB, free: 23.29 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.019e-05/0.3162, allocations: 30.56 kB / 414.5 MB, free: 23.25 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.213e-06/0.3163, allocations: 4 kB / 414.5 MB, free: 23.24 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002622/0.3165, allocations: 85.47 kB / 414.6 MB, free: 23.15 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.153e-05/0.3166, allocations: 63.38 kB / 414.7 MB, free: 23.08 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.932e-05/0.3167, allocations: 109.8 kB / 414.8 MB, free: 22.96 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.176e-05/0.3167, allocations: 25.7 kB / 414.8 MB, free: 22.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.956e-05/0.3167, allocations: 88.12 kB / 414.9 MB, free: 22.84 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.749e-05/0.3168, allocations: 7.906 kB / 414.9 MB, free: 22.83 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.236e-06/0.3168, allocations: 0 / 414.9 MB, free: 22.83 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.287e-05/0.3169, allocations: 318.8 kB / 415.2 MB, free: 22.51 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.835e-05/0.3169, allocations: 4 kB / 415.2 MB, free: 22.51 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.805e-05/0.3169, allocations: 40.28 kB / 415.3 MB, free: 22.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.413e-05/0.317, allocations: 56.23 kB / 415.3 MB, free: 22.38 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.317, allocations: 0 / 415.3 MB, free: 22.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001254/0.3171, allocations: 69.56 kB / 415.4 MB, free: 22.31 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.3172, allocations: 11.88 kB / 415.4 MB, free: 22.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.3172, allocations: 4 kB / 415.4 MB, free: 22.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.216e-05/0.3172, allocations: 3.984 kB / 415.4 MB, free: 22.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.853e-05/0.3173, allocations: 4.156 kB / 415.4 MB, free: 22.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.325e-05/0.3173, allocations: 11.94 kB / 415.4 MB, free: 22.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.466e-05/0.3174, allocations: 0 / 415.4 MB, free: 22.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.898e-06/0.3174, allocations: 4 kB / 415.4 MB, free: 22.27 MB / 298.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 0.0001003/0.3175, allocations: 117.8 kB / 415.5 MB, free: 22.14 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/0.3176, allocations: 69.53 kB / 415.6 MB, free: 22.07 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.23e-05/0.3177, allocations: 3.969 kB / 415.6 MB, free: 22.06 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.3177, allocations: 0 / 415.6 MB, free: 22.06 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.3177, allocations: 0 / 415.6 MB, free: 22.06 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.3177, allocations: 0 / 415.6 MB, free: 22.06 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.649e-05/0.3178, allocations: 169.7 kB / 415.8 MB, free: 21.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.3178, allocations: 3.984 kB / 415.8 MB, free: 21.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.838e-06/0.3178, allocations: 0 / 415.8 MB, free: 21.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.411e-06/0.3179, allocations: 8.312 kB / 415.8 MB, free: 21.83 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.3179, allocations: 0 / 415.8 MB, free: 21.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.3179, allocations: 0 / 415.8 MB, free: 21.83 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.3179, allocations: 4 kB / 415.8 MB, free: 21.83 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001529/0.3181, allocations: 89.06 kB / 415.9 MB, free: 21.72 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.789e-05/0.3181, allocations: 85.02 kB / 416 MB, free: 21.62 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.149e-05/0.3181, allocations: 15.92 kB / 416 MB, free: 21.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.805e-05/0.3182, allocations: 0 / 416 MB, free: 21.61 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.88e-06/0.3182, allocations: 144 / 416 MB, free: 21.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.052e-05/0.3182, allocations: 4 kB / 416 MB, free: 21.6 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.271e-05/0.3183, allocations: 83.28 kB / 416.1 MB, free: 21.52 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3183, allocations: 0 / 416.1 MB, free: 21.52 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003204/0.3186, allocations: 11.98 kB / 416.1 MB, free: 21.51 MB / 298.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 0.00016/0.3188, allocations: 111.2 kB / 416.2 MB, free: 21.39 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001844/0.319, allocations: 35.92 kB / 416.2 MB, free: 21.36 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.319, allocations: 0 / 416.2 MB, free: 21.36 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.863e-06/0.319, allocations: 4 kB / 416.2 MB, free: 21.35 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007713/0.3198, allocations: 0.7141 MB / 416.9 MB, free: 20.61 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004511/0.3203, allocations: 141 kB / 417.1 MB, free: 20.45 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001848/0.3205, allocations: 0.6848 MB / 417.8 MB, free: 19.74 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.842e-05/0.3205, allocations: 11.73 kB / 417.8 MB, free: 19.73 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.61e-05/0.3206, allocations: 7.438 kB / 417.8 MB, free: 19.72 MB / 298.7 MB Notification: Performance of SimCode: time 5.61e-07/0.3206, allocations: 0 / 417.8 MB, free: 19.72 MB / 298.7 MB Notification: Performance of Templates: time 0.004154/0.3247, allocations: 0.6241 MB / 418.4 MB, free: 19.1 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches