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.001328/0.001328, allocations: 119.4 kB / 18.41 MB, free: 4.688 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.001357/0.001357, allocations: 190.9 kB / 21.35 MB, free: 1.75 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.412/1.412, allocations: 222.9 MB / 247 MB, free: 4.352 MB / 190.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.001531/0.001531, allocations: 51.92 kB / 358.7 MB, free: 8.59 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0993/0.1008, allocations: 49.43 MB / 408.1 MB, free: 7.109 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.00266/0.1035, allocations: 1.415 MB / 409.5 MB, free: 5.688 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001887/0.1037, allocations: 39.91 kB / 409.6 MB, free: 5.648 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.021e-05/0.1038, allocations: 4 kB / 409.6 MB, free: 5.645 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.061e-05/0.1039, allocations: 3.938 kB / 409.6 MB, free: 5.641 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.256e-05/0.1039, allocations: 7.922 kB / 409.6 MB, free: 5.633 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002209/0.1042, allocations: 23.97 kB / 409.6 MB, free: 5.609 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.916e-05/0.1043, allocations: 39.91 kB / 409.6 MB, free: 5.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001034/0.1044, allocations: 15.98 kB / 409.6 MB, free: 5.555 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.34e-05/0.1044, allocations: 15.94 kB / 409.7 MB, free: 5.539 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.892e-05/0.1045, allocations: 15.92 kB / 409.7 MB, free: 5.523 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.761e-05/0.1045, allocations: 4 kB / 409.7 MB, free: 5.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.158e-05/0.1045, allocations: 4 kB / 409.7 MB, free: 5.516 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.834e-05/0.1045, allocations: 19.91 kB / 409.7 MB, free: 5.496 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.861e-05/0.1046, allocations: 19.88 kB / 409.7 MB, free: 5.477 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001046/0.1047, allocations: 39.81 kB / 409.8 MB, free: 5.438 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.1047, allocations: 0 / 409.8 MB, free: 5.438 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1047, allocations: 0 / 409.8 MB, free: 5.438 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.147e-06/0.1047, allocations: 0 / 409.8 MB, free: 5.438 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.0004911/0.1052, allocations: 359.3 kB / 410.1 MB, free: 5.035 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.1053, allocations: 15.89 kB / 410.1 MB, free: 5.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.648e-05/0.1053, allocations: 8.938 kB / 410.1 MB, free: 5.012 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002477/0.1056, allocations: 180.3 kB / 410.3 MB, free: 4.797 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 8.95e-05/0.1057, allocations: 34.25 kB / 410.3 MB, free: 4.758 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.188e-05/0.1057, allocations: 4.375 kB / 410.4 MB, free: 4.754 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003002/0.106, allocations: 131.8 kB / 410.5 MB, free: 4.613 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.106, allocations: 3.938 kB / 410.5 MB, free: 4.609 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.475e-05/0.106, allocations: 8 kB / 410.5 MB, free: 4.602 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.106, allocations: 0 / 410.5 MB, free: 4.602 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.679e-05/0.1061, allocations: 12 kB / 410.5 MB, free: 4.59 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000202/0.1063, allocations: 157.7 kB / 410.7 MB, free: 4.387 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002191/0.1065, allocations: 151.7 kB / 410.8 MB, free: 4.211 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.361e-05/0.1066, allocations: 24.8 kB / 410.8 MB, free: 4.184 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.362e-06/0.1066, allocations: 0 / 410.8 MB, free: 4.184 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.726e-05/0.1067, allocations: 34.55 kB / 410.9 MB, free: 4.141 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.462e-06/0.1067, allocations: 0 / 410.9 MB, free: 4.141 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002952/0.107, allocations: 85.52 kB / 410.9 MB, free: 4.051 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.998e-05/0.107, allocations: 59.41 kB / 411 MB, free: 3.98 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001059/0.1072, allocations: 105.8 kB / 411.1 MB, free: 3.867 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.04e-05/0.1072, allocations: 29.7 kB / 411.1 MB, free: 3.832 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.121e-05/0.1073, allocations: 84.08 kB / 411.2 MB, free: 3.746 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.958e-05/0.1073, allocations: 7.953 kB / 411.2 MB, free: 3.738 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.33e-05/0.1073, allocations: 25.7 kB / 411.3 MB, free: 3.707 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002018/0.1076, allocations: 310.8 kB / 411.6 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.792e-05/0.1076, allocations: 8 kB / 411.6 MB, free: 3.387 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.188e-05/0.1077, allocations: 44.28 kB / 411.6 MB, free: 3.328 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.697e-05/0.1078, allocations: 44.23 kB / 411.7 MB, free: 3.27 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1078, allocations: 4 kB / 411.7 MB, free: 3.266 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001578/0.1079, allocations: 73.56 kB / 411.7 MB, free: 3.188 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.108, allocations: 7.938 kB / 411.7 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.108, allocations: 4 kB / 411.7 MB, free: 3.176 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.842e-05/0.108, allocations: 0 / 411.7 MB, free: 3.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.004e-05/0.1081, allocations: 7.984 kB / 411.7 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.1081, allocations: 8.375 kB / 411.8 MB, free: 3.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.635e-05/0.1081, allocations: 3.938 kB / 411.8 MB, free: 3.156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.347e-06/0.1081, allocations: 4 kB / 411.8 MB, free: 3.152 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.0001053/0.1083, allocations: 124.4 kB / 411.9 MB, free: 3.023 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001501/0.1084, allocations: 69.58 kB / 412 MB, free: 2.949 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.469e-05/0.1084, allocations: 3.969 kB / 412 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.1085, allocations: 0 / 412 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.1085, allocations: 0 / 412 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.1085, allocations: 0 / 412 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00016/0.1086, allocations: 165.6 kB / 412.1 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.1087, allocations: 4 kB / 412.1 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.033e-05/0.1087, allocations: 3.938 kB / 412.1 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.1087, allocations: 7.938 kB / 412.1 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.1087, allocations: 4.078 kB / 412.1 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.1087, allocations: 0 / 412.1 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1087, allocations: 0 / 412.1 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001798/0.1089, allocations: 89.11 kB / 412.2 MB, free: 2.605 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.694e-05/0.109, allocations: 81.06 kB / 412.3 MB, free: 2.508 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.516e-05/0.109, allocations: 11.94 kB / 412.3 MB, free: 2.496 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.642e-05/0.1091, allocations: 3.984 kB / 412.3 MB, free: 2.492 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.685e-06/0.1091, allocations: 4 kB / 412.3 MB, free: 2.488 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.051e-05/0.1091, allocations: 4 kB / 412.3 MB, free: 2.484 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.137e-05/0.1092, allocations: 83.28 kB / 412.4 MB, free: 2.402 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1092, allocations: 0 / 412.4 MB, free: 2.402 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003053/0.1095, allocations: 8 kB / 412.4 MB, free: 2.395 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.0001287/0.1096, allocations: 111.1 kB / 412.5 MB, free: 2.277 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001601/0.1098, allocations: 27.94 kB / 412.6 MB, free: 2.25 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1098, allocations: 320 / 412.6 MB, free: 2.25 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.01e-07/0.1098, allocations: 4 kB / 412.6 MB, free: 2.246 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009321/0.1108, allocations: 0.7299 MB / 413.3 MB, free: 1.492 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003627/0.1111, allocations: 155.1 kB / 413.4 MB, free: 1.312 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000401/0.1116, allocations: 0.6952 MB / 414.1 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.743e-05/0.1116, allocations: 11.44 kB / 414.1 MB, free: 0.582 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1116, allocations: 4.062 kB / 414.1 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of Templates: time 0.002872/0.1145, allocations: 0.7646 MB / 414.9 MB, free: 15.82 MB / 350.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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 6.567576336092316]