Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 109.9 kB / 17.06 MB, free: 6.137 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 191 kB / 18 MB, free: 5.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00107/0.00107, allocations: 51.92 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4796/0.4807, allocations: 49.43 MB / 400.7 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003534/0.4843, allocations: 1.435 MB / 402.1 MB, free: 7.453 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002672/0.4846, allocations: 35.91 kB / 402.2 MB, free: 7.418 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.447e-05/0.4847, allocations: 4 kB / 402.2 MB, free: 7.414 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.715e-05/0.4848, allocations: 11.92 kB / 402.2 MB, free: 7.402 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.221e-05/0.4849, allocations: 3.938 kB / 402.2 MB, free: 7.398 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002767/0.4851, allocations: 27.97 kB / 402.2 MB, free: 7.371 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001171/0.4853, allocations: 35.92 kB / 402.3 MB, free: 7.336 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001187/0.4854, allocations: 7.984 kB / 402.3 MB, free: 7.328 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.769e-05/0.4855, allocations: 23.91 kB / 402.3 MB, free: 7.305 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.741e-05/0.4855, allocations: 19.92 kB / 402.3 MB, free: 7.285 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.56e-05/0.4856, allocations: 4 kB / 402.3 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.267e-05/0.4856, allocations: 4 kB / 402.3 MB, free: 7.277 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.229e-05/0.4856, allocations: 11.94 kB / 402.3 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.718e-05/0.4857, allocations: 27.84 kB / 402.4 MB, free: 7.238 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001317/0.4858, allocations: 35.83 kB / 402.4 MB, free: 7.203 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.4859, allocations: 0 / 402.4 MB, free: 7.203 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.4859, allocations: 0 / 402.4 MB, free: 7.203 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.4859, allocations: 0 / 402.4 MB, free: 7.203 MB / 318.1 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.0005685/0.4864, allocations: 352.8 kB / 402.7 MB, free: 6.809 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.4865, allocations: 15.89 kB / 402.8 MB, free: 6.793 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.145e-05/0.4866, allocations: 4.938 kB / 402.8 MB, free: 6.789 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002661/0.4868, allocations: 180.3 kB / 402.9 MB, free: 6.574 MB / 318.1 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.0001287/0.487, allocations: 34.25 kB / 403 MB, free: 6.535 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.499e-05/0.487, allocations: 8.375 kB / 403 MB, free: 6.527 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00035/0.4873, allocations: 127.8 kB / 403.1 MB, free: 6.391 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.4874, allocations: 3.938 kB / 403.1 MB, free: 6.387 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.37e-05/0.4874, allocations: 4 kB / 403.1 MB, free: 6.383 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.4874, allocations: 0 / 403.1 MB, free: 6.383 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.952e-05/0.4875, allocations: 19.98 kB / 403.1 MB, free: 6.363 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001777/0.4877, allocations: 165.3 kB / 403.3 MB, free: 6.156 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002196/0.4879, allocations: 139.7 kB / 403.4 MB, free: 5.992 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.683e-05/0.4879, allocations: 28.83 kB / 403.5 MB, free: 5.961 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.445e-05/0.488, allocations: 0 / 403.5 MB, free: 5.961 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.256e-05/0.488, allocations: 38.56 kB / 403.5 MB, free: 5.914 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.262e-06/0.488, allocations: 0 / 403.5 MB, free: 5.914 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002379/0.4883, allocations: 81.66 kB / 403.6 MB, free: 5.828 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.373e-05/0.4883, allocations: 63.41 kB / 403.6 MB, free: 5.754 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.347e-05/0.4884, allocations: 109.8 kB / 403.7 MB, free: 5.637 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.23e-05/0.4884, allocations: 25.7 kB / 403.8 MB, free: 5.605 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.969e-05/0.4885, allocations: 84.14 kB / 403.8 MB, free: 5.52 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.683e-05/0.4885, allocations: 3.984 kB / 403.9 MB, free: 5.516 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.65e-05/0.4886, allocations: 21.72 kB / 403.9 MB, free: 5.488 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.4887, allocations: 318.8 kB / 404.2 MB, free: 5.168 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.921e-05/0.4887, allocations: 7.984 kB / 404.2 MB, free: 5.16 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.805e-05/0.4888, allocations: 36.3 kB / 404.2 MB, free: 5.109 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.777e-05/0.4888, allocations: 52.23 kB / 404.3 MB, free: 5.043 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.4888, allocations: 0 / 404.3 MB, free: 5.043 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.62e-05/0.4889, allocations: 73.47 kB / 404.3 MB, free: 4.965 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.489, allocations: 11.92 kB / 404.4 MB, free: 4.953 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.489, allocations: 4 kB / 404.4 MB, free: 4.949 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.489, allocations: 160 / 404.4 MB, free: 4.949 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.916e-05/0.4891, allocations: 8 kB / 404.4 MB, free: 4.941 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.4891, allocations: 7.938 kB / 404.4 MB, free: 4.934 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.379e-05/0.4891, allocations: 0 / 404.4 MB, free: 4.934 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.68e-06/0.4891, allocations: 7.938 kB / 404.4 MB, free: 4.926 MB / 318.1 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 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,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.0001042/0.4892, allocations: 113.8 kB / 404.5 MB, free: 4.805 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001014/0.4893, allocations: 69.53 kB / 404.6 MB, free: 4.73 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3e-05/0.4894, allocations: 7.969 kB / 404.6 MB, free: 4.719 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.4894, allocations: 0 / 404.6 MB, free: 4.719 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.4894, allocations: 4 kB / 404.6 MB, free: 4.715 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.347e-05/0.4894, allocations: 3.984 kB / 404.6 MB, free: 4.711 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001578/0.4896, allocations: 161.7 kB / 404.7 MB, free: 4.504 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.4896, allocations: 0 / 404.7 MB, free: 4.504 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.378e-06/0.4896, allocations: 3.938 kB / 404.7 MB, free: 4.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.4896, allocations: 3.938 kB / 404.7 MB, free: 4.496 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.837e-06/0.4896, allocations: 0 / 404.7 MB, free: 4.496 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.4896, allocations: 256 / 404.7 MB, free: 4.496 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.4896, allocations: 0 / 404.7 MB, free: 4.496 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000161/0.4898, allocations: 97.06 kB / 404.8 MB, free: 4.383 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.503e-05/0.4898, allocations: 81.02 kB / 404.9 MB, free: 4.285 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.482e-05/0.4899, allocations: 15.92 kB / 404.9 MB, free: 4.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.32e-05/0.4899, allocations: 0 / 404.9 MB, free: 4.27 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.885e-06/0.4899, allocations: 0 / 404.9 MB, free: 4.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.047e-06/0.4899, allocations: 4 kB / 404.9 MB, free: 4.266 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.483e-05/0.49, allocations: 87.27 kB / 405 MB, free: 4.18 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.49, allocations: 0 / 405 MB, free: 4.18 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002026/0.4902, allocations: 8 kB / 405 MB, free: 4.172 MB / 318.1 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.0001254/0.4903, allocations: 107.2 kB / 405.1 MB, free: 4.059 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00013/0.4905, allocations: 35.92 kB / 405.2 MB, free: 4.023 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.4905, allocations: 0 / 405.2 MB, free: 4.023 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.51e-07/0.4905, allocations: 0 / 405.2 MB, free: 4.023 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006781/0.4912, allocations: 0.7253 MB / 405.9 MB, free: 3.277 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000321/0.4915, allocations: 129.5 kB / 406 MB, free: 3.125 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002741/0.4918, allocations: 0.6922 MB / 406.7 MB, free: 2.406 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.442e-05/0.4918, allocations: 0 / 406.7 MB, free: 2.406 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.375e-05/0.4919, allocations: 11.44 kB / 406.7 MB, free: 2.395 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.4919, allocations: 0 / 406.7 MB, free: 2.395 MB / 318.1 MB Notification: Performance of Templates: time 0.002865/0.4947, allocations: 0.6884 MB / 407.4 MB, free: 1.715 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches