Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001655/0.001655, allocations: 116 kB / 18.45 MB, free: 4.562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00196/0.00196, allocations: 213.6 kB / 21.42 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.493/1.493, allocations: 230.6 MB / 254.8 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 59.92 kB / 374.2 MB, free: 9.707 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09639/0.09793, allocations: 53.34 MB / 427.5 MB, free: 4.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002514/0.1004, allocations: 1.428 MB / 428.9 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001908/0.1006, allocations: 43.91 kB / 429 MB, free: 2.797 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.095e-05/0.1007, allocations: 0 / 429 MB, free: 2.797 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.697e-05/0.1007, allocations: 7.875 kB / 429 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.455e-05/0.1008, allocations: 3.938 kB / 429 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002135/0.101, allocations: 27.95 kB / 429 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.515e-05/0.1011, allocations: 39.91 kB / 429 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.242e-05/0.1012, allocations: 15.92 kB / 429.1 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.443e-05/0.1012, allocations: 15.94 kB / 429.1 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.195e-05/0.1013, allocations: 15.92 kB / 429.1 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.854e-05/0.1013, allocations: 4 kB / 429.1 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.067e-05/0.1013, allocations: 7.938 kB / 429.1 MB, free: 2.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.264e-05/0.1013, allocations: 19.97 kB / 429.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.677e-05/0.1014, allocations: 19.88 kB / 429.1 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.699e-05/0.1015, allocations: 39.81 kB / 429.2 MB, free: 2.582 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.1015, allocations: 0 / 429.2 MB, free: 2.582 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1015, allocations: 0 / 429.2 MB, free: 2.582 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.728e-06/0.1015, allocations: 0 / 429.2 MB, free: 2.582 MB / 350.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.0004803/0.102, allocations: 355.4 kB / 429.5 MB, free: 2.184 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.187e-05/0.102, allocations: 8.031 kB / 429.5 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.467e-05/0.102, allocations: 8.891 kB / 429.5 MB, free: 2.168 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002206/0.1023, allocations: 188.3 kB / 429.7 MB, free: 1.945 MB / 350.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 8.77e-05/0.1023, allocations: 38.25 kB / 429.8 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.467e-05/0.1024, allocations: 384 / 429.8 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002897/0.1026, allocations: 127.8 kB / 429.9 MB, free: 1.766 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.1027, allocations: 3.938 kB / 429.9 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.046e-05/0.1027, allocations: 8 kB / 429.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.767e-06/0.1027, allocations: 4 kB / 429.9 MB, free: 1.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.411e-05/0.1027, allocations: 12 kB / 429.9 MB, free: 1.738 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001543/0.1029, allocations: 161.6 kB / 430.1 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002039/0.1031, allocations: 139.7 kB / 430.2 MB, free: 1.367 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.628e-05/0.1031, allocations: 24.86 kB / 430.2 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.929e-06/0.1032, allocations: 0 / 430.2 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.366e-05/0.1032, allocations: 38.55 kB / 430.3 MB, free: 1.293 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 8.82e-07/0.1032, allocations: 0 / 430.3 MB, free: 1.293 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002065/0.1034, allocations: 77.56 kB / 430.3 MB, free: 1.211 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.991e-05/0.1034, allocations: 55.41 kB / 430.4 MB, free: 1.145 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.685e-05/0.1035, allocations: 105.8 kB / 430.5 MB, free: 1.031 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.1035, allocations: 25.7 kB / 430.5 MB, free: 1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.02e-05/0.1036, allocations: 88.14 kB / 430.6 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.338e-05/0.1036, allocations: 3.953 kB / 430.6 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.884e-05/0.1036, allocations: 25.7 kB / 430.6 MB, free: 0.875 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.1038, allocations: 318.8 kB / 430.9 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.587e-05/0.1038, allocations: 4 kB / 431 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.196e-05/0.1038, allocations: 44.22 kB / 431 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.077e-05/0.1039, allocations: 48.23 kB / 431 MB, free: 440 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1039, allocations: 0 / 431 MB, free: 440 kB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001046/0.104, allocations: 81.45 kB / 431.1 MB, free: 352 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.104, allocations: 10.12 kB / 431.1 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.104, allocations: 160 / 431.1 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.104, allocations: 8 kB / 431.1 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.135e-05/0.1041, allocations: 7.984 kB / 431.1 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.1041, allocations: 3.938 kB / 431.2 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.494e-05/0.1041, allocations: 4 kB / 431.2 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.424e-06/0.1041, allocations: 8 kB / 431.2 MB, free: 312 kB / 350.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 7.997e-05/0.1042, allocations: 116.5 kB / 431.3 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.1043, allocations: 65.62 kB / 431.3 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.428e-05/0.1043, allocations: 7.969 kB / 431.3 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.1043, allocations: 4 kB / 431.4 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.1043, allocations: 0 / 431.4 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.1043, allocations: 0 / 431.4 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001256/0.1044, allocations: 157.7 kB / 431.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.1044, allocations: 0 / 431.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.909e-06/0.1045, allocations: 7.938 kB / 431.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.1045, allocations: 3.938 kB / 431.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.1045, allocations: 3.984 kB / 431.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.1045, allocations: 0 / 431.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1045, allocations: 96 / 431.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001428/0.1046, allocations: 101.1 kB / 431.6 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.764e-05/0.1047, allocations: 77.11 kB / 431.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.81e-05/0.1047, allocations: 3.938 kB / 431.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.742e-05/0.1047, allocations: 7.984 kB / 431.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.484e-06/0.1047, allocations: 0 / 431.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.366e-06/0.1047, allocations: 4 kB / 431.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.435e-05/0.1048, allocations: 83.28 kB / 431.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1048, allocations: 0 / 431.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000207/0.105, allocations: 15.94 kB / 431.8 MB, free: 15.55 MB / 366.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.0001028/0.1051, allocations: 107.2 kB / 431.9 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001186/0.1052, allocations: 28 kB / 431.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1052, allocations: 0 / 431.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.957e-06/0.1052, allocations: 3.938 kB / 431.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006804/0.1059, allocations: 0.726 MB / 432.7 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002955/0.1062, allocations: 163.2 kB / 432.8 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002947/0.1065, allocations: 0.6846 MB / 433.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.105e-05/0.1065, allocations: 7.438 kB / 433.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1065, allocations: 0 / 433.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of Templates: time 0.002119/0.1086, allocations: 0.7738 MB / 434.3 MB, free: 12.98 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 6.64379731999361]