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.001725/0.001725, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.00215/0.00215, allocations: 218.9 kB / 21.46 MB, free: 1.586 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.409/1.409, 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 51.91 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1032, allocations: 53.32 MB / 427 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002877/0.1061, allocations: 1.446 MB / 428.5 MB, free: 3.332 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001961/0.1063, allocations: 47.83 kB / 428.5 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.885e-05/0.1064, allocations: 0 / 428.5 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.014e-05/0.1064, allocations: 7.875 kB / 428.5 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.793e-05/0.1065, allocations: 3.984 kB / 428.5 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002464/0.1067, allocations: 27.91 kB / 428.5 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.802e-05/0.1068, allocations: 35.92 kB / 428.6 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.654e-05/0.1069, allocations: 11.98 kB / 428.6 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.785e-05/0.107, allocations: 15.94 kB / 428.6 MB, free: 3.184 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.452e-05/0.107, allocations: 23.91 kB / 428.6 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.723e-05/0.107, allocations: 4 kB / 428.6 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.08e-05/0.107, allocations: 4 kB / 428.6 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.174e-05/0.1071, allocations: 11.98 kB / 428.7 MB, free: 3.141 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.087e-05/0.1071, allocations: 19.88 kB / 428.7 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001044/0.1072, allocations: 43.8 kB / 428.7 MB, free: 3.078 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.1072, allocations: 0 / 428.7 MB, free: 3.078 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1072, allocations: 0 / 428.7 MB, free: 3.078 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.1072, allocations: 0 / 428.7 MB, free: 3.078 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.0005383/0.1078, allocations: 347.4 kB / 429.1 MB, free: 2.688 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.1078, allocations: 19.97 kB / 429.1 MB, free: 2.668 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.043e-05/0.1078, allocations: 192 / 429.1 MB, free: 2.668 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.778e-05/0.1078, allocations: 38.69 kB / 429.1 MB, free: 2.621 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.537e-05/0.1079, allocations: 4.891 kB / 429.1 MB, free: 2.617 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002474/0.1081, allocations: 184.3 kB / 429.3 MB, free: 2.398 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 0.0001113/0.1082, allocations: 34.27 kB / 429.3 MB, free: 2.359 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.195e-05/0.1083, allocations: 4.375 kB / 429.3 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003091/0.1086, allocations: 131.4 kB / 429.5 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.1086, allocations: 0 / 429.5 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.686e-06/0.1086, allocations: 0 / 429.5 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.1086, allocations: 0 / 429.5 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.22e-05/0.1086, allocations: 19.98 kB / 429.5 MB, free: 2.195 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001734/0.1088, allocations: 165.6 kB / 429.6 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000223/0.109, allocations: 139.7 kB / 429.8 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.498e-05/0.1091, allocations: 20.84 kB / 429.8 MB, free: 1.797 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.073e-05/0.1091, allocations: 0 / 429.8 MB, free: 1.797 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.236e-05/0.1091, allocations: 38.5 kB / 429.8 MB, free: 1.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.243e-06/0.1091, allocations: 0 / 429.8 MB, free: 1.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002131/0.1094, allocations: 69.69 kB / 429.9 MB, free: 1.676 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.127e-05/0.1094, allocations: 55.41 kB / 430 MB, free: 1.609 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.887e-05/0.1095, allocations: 113.8 kB / 430.1 MB, free: 1.488 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.605e-05/0.1095, allocations: 29.64 kB / 430.1 MB, free: 1.453 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.101e-05/0.1096, allocations: 80.14 kB / 430.2 MB, free: 1.371 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.693e-05/0.1096, allocations: 15.94 kB / 430.2 MB, free: 1.355 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.16e-05/0.1096, allocations: 17.72 kB / 430.2 MB, free: 1.332 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.1098, allocations: 314.8 kB / 430.5 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.049e-05/0.1098, allocations: 15.98 kB / 430.5 MB, free: 1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.34e-05/0.1098, allocations: 44.7 kB / 430.6 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.435e-05/0.1099, allocations: 44.23 kB / 430.6 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.1099, allocations: 3.984 kB / 430.6 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001094/0.11, allocations: 89.45 kB / 430.7 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.11, allocations: 8 kB / 430.7 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.11, allocations: 0 / 430.7 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.11, allocations: 4 kB / 430.7 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.014e-05/0.1101, allocations: 4 kB / 430.7 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.1101, allocations: 0 / 430.7 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.472e-05/0.1101, allocations: 4 kB / 430.7 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.048e-06/0.1101, allocations: 0 / 430.7 MB, free: 0.7656 MB / 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 9.395e-05/0.1102, allocations: 121.9 kB / 430.8 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001052/0.1103, allocations: 65.62 kB / 430.9 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.25e-05/0.1103, allocations: 3.969 kB / 430.9 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.1103, allocations: 7.938 kB / 430.9 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.1103, allocations: 4.078 kB / 430.9 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.1103, allocations: 3.984 kB / 430.9 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001209/0.1105, allocations: 157.7 kB / 431.1 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.1105, allocations: 0 / 431.1 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.145e-06/0.1105, allocations: 3.938 kB / 431.1 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.1105, allocations: 4 kB / 431.1 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.1105, allocations: 8 kB / 431.1 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.1105, allocations: 0 / 431.1 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1105, allocations: 0 / 431.1 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001323/0.1106, allocations: 89.02 kB / 431.2 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.811e-05/0.1107, allocations: 89.03 kB / 431.3 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.488e-05/0.1107, allocations: 0 / 431.3 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.684e-05/0.1107, allocations: 8 kB / 431.3 MB, free: 104 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.575e-06/0.1107, allocations: 4 kB / 431.3 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.725e-06/0.1107, allocations: 4 kB / 431.3 MB, free: 96 kB / 350.1 MB Notification: Performance of sorting global known variables: time 4.805e-05/0.1108, allocations: 95.2 kB / 431.4 MB, free: 0 / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1108, allocations: 0 / 431.4 MB, free: 0 / 350.1 MB Notification: Performance of remove unused functions: time 0.0002119/0.111, allocations: 4.047 kB / 431.4 MB, free: 15.99 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.000556/0.1116, allocations: 0.6592 MB / 432 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001164/0.1117, allocations: 35.92 kB / 432.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1117, allocations: 0 / 432.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.01e-07/0.1117, allocations: 0 / 432.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007074/0.1124, allocations: 0.7064 MB / 432.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001126/0.1135, allocations: 1.227 MB / 434 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000312/0.1138, allocations: 0.6807 MB / 434.7 MB, free: 12.51 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.384e-05/0.1138, allocations: 11.98 kB / 434.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.524e-05/0.1139, allocations: 11.44 kB / 434.7 MB, free: 12.48 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1139, allocations: 0 / 434.7 MB, free: 12.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01796/0.1318, allocations: 1.722 MB / 436.4 MB, free: 10.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.899/8.03, allocations: 24.62 kB / 436.5 MB, free: 10.91 MB / 366.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 52.5] 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: 10.609401036985219]