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.001718/0.001717, allocations: 115.9 kB / 17.74 MB, free: 5.355 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.002163/0.002163, allocations: 185.3 kB / 20.68 MB, free: 2.422 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.395/1.395, allocations: 222.9 MB / 246.4 MB, free: 4.199 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00206/0.002061, allocations: 51.92 kB / 357.5 MB, free: 8.832 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1026, allocations: 49.44 MB / 406.9 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002579/0.1052, allocations: 1.411 MB / 408.3 MB, free: 5.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000207/0.1054, allocations: 47.84 kB / 408.4 MB, free: 5.883 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.621e-05/0.1055, allocations: 4 kB / 408.4 MB, free: 5.879 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.439e-05/0.1055, allocations: 3.938 kB / 408.4 MB, free: 5.875 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.577e-05/0.1056, allocations: 3.938 kB / 408.4 MB, free: 5.871 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002448/0.1058, allocations: 31.95 kB / 408.4 MB, free: 5.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.238e-05/0.1059, allocations: 35.92 kB / 408.5 MB, free: 5.805 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.588e-05/0.106, allocations: 12.22 kB / 408.5 MB, free: 5.793 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.313e-05/0.1061, allocations: 19.97 kB / 408.5 MB, free: 5.773 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.938e-05/0.1062, allocations: 15.92 kB / 408.5 MB, free: 5.758 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.979e-05/0.1062, allocations: 4 kB / 408.5 MB, free: 5.754 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.243e-05/0.1062, allocations: 8 kB / 408.5 MB, free: 5.746 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.718e-05/0.1062, allocations: 11.92 kB / 408.5 MB, free: 5.734 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.509e-05/0.1063, allocations: 15.94 kB / 408.6 MB, free: 5.719 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001102/0.1064, allocations: 47.75 kB / 408.6 MB, free: 5.672 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1064, allocations: 0 / 408.6 MB, free: 5.672 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.1064, allocations: 0 / 408.6 MB, free: 5.672 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.1064, allocations: 3.938 kB / 408.6 MB, free: 5.668 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.0004955/0.1069, allocations: 351.3 kB / 408.9 MB, free: 5.273 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.107, allocations: 16.02 kB / 409 MB, free: 5.258 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.541e-05/0.107, allocations: 30.75 kB / 409 MB, free: 5.219 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.625e-05/0.107, allocations: 12.88 kB / 409 MB, free: 5.207 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002068/0.1072, allocations: 176.3 kB / 409.2 MB, free: 4.996 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.0001085/0.1074, allocations: 38.25 kB / 409.2 MB, free: 4.953 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.611e-05/0.1074, allocations: 8.359 kB / 409.2 MB, free: 4.945 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002826/0.1077, allocations: 135.5 kB / 409.4 MB, free: 4.801 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.1077, allocations: 8 kB / 409.4 MB, free: 4.793 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.594e-06/0.1077, allocations: 0 / 409.4 MB, free: 4.793 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.1077, allocations: 0 / 409.4 MB, free: 4.793 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.416e-05/0.1078, allocations: 19.92 kB / 409.4 MB, free: 4.773 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001507/0.1079, allocations: 161.7 kB / 409.5 MB, free: 4.566 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002032/0.1081, allocations: 139.7 kB / 409.7 MB, free: 4.402 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.582e-05/0.1082, allocations: 24.86 kB / 409.7 MB, free: 4.375 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.029e-05/0.1082, allocations: 4 kB / 409.7 MB, free: 4.371 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.1083, allocations: 38.48 kB / 409.7 MB, free: 4.324 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.123e-06/0.1083, allocations: 0 / 409.7 MB, free: 4.324 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002043/0.1085, allocations: 73.64 kB / 409.8 MB, free: 4.246 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.652e-05/0.1085, allocations: 59.41 kB / 409.9 MB, free: 4.176 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.339e-05/0.1086, allocations: 105.8 kB / 410 MB, free: 4.062 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/0.1087, allocations: 25.7 kB / 410 MB, free: 4.031 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.333e-05/0.1087, allocations: 92.08 kB / 410.1 MB, free: 3.938 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.463e-05/0.1087, allocations: 3.953 kB / 410.1 MB, free: 3.934 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.138e-05/0.1088, allocations: 25.7 kB / 410.1 MB, free: 3.902 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.1089, allocations: 314.8 kB / 410.4 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.686e-05/0.1089, allocations: 4 kB / 410.4 MB, free: 3.582 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.223e-05/0.109, allocations: 40.28 kB / 410.5 MB, free: 3.527 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.437e-05/0.1091, allocations: 52.23 kB / 410.5 MB, free: 3.461 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1091, allocations: 0 / 410.5 MB, free: 3.461 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001033/0.1092, allocations: 69.56 kB / 410.6 MB, free: 3.387 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.1092, allocations: 16.09 kB / 410.6 MB, free: 3.371 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.1092, allocations: 448 / 410.6 MB, free: 3.371 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.1092, allocations: 0 / 410.6 MB, free: 3.371 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.318e-05/0.1093, allocations: 7.984 kB / 410.6 MB, free: 3.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/0.1093, allocations: 4 kB / 410.6 MB, free: 3.359 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.355e-05/0.1093, allocations: 4 kB / 410.6 MB, free: 3.355 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.834e-06/0.1093, allocations: 8 kB / 410.6 MB, free: 3.348 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 8.716e-05/0.1094, allocations: 117.8 kB / 410.7 MB, free: 3.223 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001067/0.1095, allocations: 65.58 kB / 410.8 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.814e-05/0.1096, allocations: 15.91 kB / 410.8 MB, free: 3.133 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.1096, allocations: 3.938 kB / 410.8 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.1096, allocations: 0 / 410.8 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.1096, allocations: 4 kB / 410.8 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001144/0.1097, allocations: 157.7 kB / 411 MB, free: 2.922 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.1097, allocations: 0 / 411 MB, free: 2.922 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.801e-06/0.1097, allocations: 0 / 411 MB, free: 2.922 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.1097, allocations: 3.938 kB / 411 MB, free: 2.918 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.1097, allocations: 3.984 kB / 411 MB, free: 2.914 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.1098, allocations: 0 / 411 MB, free: 2.914 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1098, allocations: 4 kB / 411 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001318/0.1099, allocations: 89.06 kB / 411.1 MB, free: 2.805 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.418e-05/0.11, allocations: 93.08 kB / 411.2 MB, free: 2.695 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.963e-05/0.11, allocations: 7.984 kB / 411.2 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.117e-05/0.11, allocations: 3.984 kB / 411.2 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.518e-06/0.11, allocations: 4 kB / 411.2 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.082e-06/0.1101, allocations: 0 / 411.2 MB, free: 2.68 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.941e-05/0.1101, allocations: 87.28 kB / 411.3 MB, free: 2.594 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1101, allocations: 4 kB / 411.3 MB, free: 2.59 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001864/0.1103, allocations: 12 kB / 411.3 MB, free: 2.578 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.0005436/0.1109, allocations: 0.6514 MB / 411.9 MB, free: 1.898 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001234/0.111, allocations: 36.23 kB / 412 MB, free: 1.863 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.111, allocations: 4.062 kB / 412 MB, free: 1.859 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.41e-07/0.111, allocations: 0 / 412 MB, free: 1.859 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000714/0.1117, allocations: 0.722 MB / 412.7 MB, free: 1.113 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001186/0.1129, allocations: 1.228 MB / 413.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003054/0.1132, allocations: 0.6844 MB / 414.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.972e-05/0.1133, allocations: 0 / 414.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.616e-05/0.1133, allocations: 15.44 kB / 414.6 MB, free: 15.06 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1133, allocations: 0 / 414.6 MB, free: 15.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02201/0.1353, allocations: 1.691 MB / 416.3 MB, free: 13.51 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.665/7.801, allocations: 20.36 kB / 416.3 MB, free: 13.49 MB / 350.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 52.5] 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: 10.167272651102394]