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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001923/0.001923, allocations: 107.5 kB / 20.44 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002158/0.002158, allocations: 186 kB / 23.7 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.53/1.53, allocations: 225.7 MB / 252.5 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] 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=5011,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=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00158/0.00158, allocations: 51.91 kB / 370.9 MB, free: 9.219 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2923/0.2939, allocations: 52.17 MB / 423 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002909/0.2968, allocations: 1.449 MB / 424.5 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000227/0.2971, allocations: 47.83 kB / 424.5 MB, free: 13 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.397e-05/0.2971, allocations: 0 / 424.5 MB, free: 13 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.138e-05/0.2972, allocations: 7.875 kB / 424.6 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.287e-05/0.2972, allocations: 3.938 kB / 424.6 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002824/0.2975, allocations: 23.97 kB / 424.6 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001094/0.2976, allocations: 39.91 kB / 424.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000115/0.2977, allocations: 11.98 kB / 424.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.444e-05/0.2978, allocations: 23.92 kB / 424.7 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.053e-05/0.2978, allocations: 11.94 kB / 424.7 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.97e-05/0.2979, allocations: 4 kB / 424.7 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.28e-05/0.2979, allocations: 4 kB / 424.7 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.118e-05/0.2979, allocations: 15.92 kB / 424.7 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.849e-05/0.2979, allocations: 15.92 kB / 424.7 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001275/0.2981, allocations: 39.67 kB / 424.7 MB, free: 12.8 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2981, allocations: 3.938 kB / 424.7 MB, free: 12.8 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2981, allocations: 0 / 424.7 MB, free: 12.8 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.381e-06/0.2981, allocations: 0 / 424.7 MB, free: 12.8 MB / 334.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.0005382/0.2986, allocations: 280.6 kB / 425 MB, free: 12.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.2986, allocations: 12.03 kB / 425 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.157e-05/0.2987, allocations: 4.938 kB / 425 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002322/0.2989, allocations: 126.5 kB / 425.2 MB, free: 12.33 MB / 334.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.0001062/0.299, allocations: 34.25 kB / 425.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.605e-05/0.299, allocations: 8.375 kB / 425.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003087/0.2994, allocations: 123.8 kB / 425.3 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.2994, allocations: 7.922 kB / 425.3 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.028e-05/0.2994, allocations: 4 kB / 425.3 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/0.2994, allocations: 3.984 kB / 425.3 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.926e-05/0.2994, allocations: 16 kB / 425.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001256/0.2996, allocations: 109.2 kB / 425.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001685/0.2997, allocations: 58.62 kB / 425.5 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.216e-05/0.2998, allocations: 20.84 kB / 425.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.054e-05/0.2998, allocations: 4 kB / 425.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.967e-05/0.2998, allocations: 34.56 kB / 425.6 MB, free: 11.85 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.112e-06/0.2998, allocations: 0 / 425.6 MB, free: 11.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002106/0.3, allocations: 77.58 kB / 425.7 MB, free: 11.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.385e-05/0.3001, allocations: 63.53 kB / 425.7 MB, free: 11.69 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.56e-05/0.3002, allocations: 109.8 kB / 425.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.3002, allocations: 29.7 kB / 425.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.607e-05/0.3003, allocations: 84.14 kB / 425.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.758e-05/0.3003, allocations: 11.88 kB / 425.9 MB, free: 11.44 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.722e-05/0.3003, allocations: 21.72 kB / 426 MB, free: 11.41 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.3005, allocations: 314.8 kB / 426.3 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.015e-05/0.3005, allocations: 11.92 kB / 426.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.071e-05/0.3005, allocations: 36.3 kB / 426.3 MB, free: 11.04 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.057e-05/0.3006, allocations: 56.22 kB / 426.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3006, allocations: 0 / 426.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001167/0.3007, allocations: 69.56 kB / 426.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.3007, allocations: 10.66 kB / 426.5 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.3007, allocations: 0 / 426.5 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.3e-05/0.3008, allocations: 7.938 kB / 426.5 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.232e-05/0.3008, allocations: 8.156 kB / 426.5 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.355e-06/0.3008, allocations: 0 / 426.5 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.65e-05/0.3008, allocations: 4 kB / 426.5 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.108e-06/0.3009, allocations: 0 / 426.5 MB, free: 10.86 MB / 334.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.000105/0.301, allocations: 121.8 kB / 426.6 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001191/0.3011, allocations: 61.64 kB / 426.7 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.086e-05/0.3011, allocations: 12 kB / 426.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.3011, allocations: 3.984 kB / 426.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.3011, allocations: 0 / 426.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.3011, allocations: 0 / 426.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.367e-05/0.3012, allocations: 105.3 kB / 426.8 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.3012, allocations: 0 / 426.8 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.847e-06/0.3012, allocations: 3.984 kB / 426.8 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.3012, allocations: 4 kB / 426.8 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/0.3012, allocations: 4 kB / 426.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.3012, allocations: 3.938 kB / 426.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3012, allocations: 0 / 426.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001568/0.3014, allocations: 97.27 kB / 426.9 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.005e-06/0.3014, allocations: 0 / 426.9 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.175e-05/0.3014, allocations: 4 kB / 426.9 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.815e-05/0.3015, allocations: 11.92 kB / 426.9 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.376e-06/0.3015, allocations: 7.938 kB / 426.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/0.3015, allocations: 4 kB / 426.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.332e-05/0.3015, allocations: 79.28 kB / 427 MB, free: 10.28 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3015, allocations: 0 / 427 MB, free: 10.28 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002017/0.3017, allocations: 12 kB / 427 MB, free: 10.27 MB / 334.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.000143/0.3019, allocations: 102.9 kB / 427.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001308/0.302, allocations: 36.06 kB / 427.1 MB, free: 10.13 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.302, allocations: 320 / 427.1 MB, free: 10.13 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.82e-07/0.302, allocations: 4 kB / 427.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007872/0.3028, allocations: 0.7257 MB / 427.9 MB, free: 9.375 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003495/0.3032, allocations: 117.7 kB / 428 MB, free: 9.234 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.181e-05/0.3032, allocations: 79.12 kB / 428.1 MB, free: 9.137 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.43e-05/0.3033, allocations: 0 / 428.1 MB, free: 9.137 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.683e-05/0.3033, allocations: 11.44 kB / 428.1 MB, free: 9.125 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3033, allocations: 0 / 428.1 MB, free: 9.125 MB / 334.1 MB Notification: Performance of Templates: time 0.004583/0.3079, allocations: 0.7823 MB / 428.8 MB, free: 8.363 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.5843095406889915]