Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.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.001464/0.001464, allocations: 120.1 kB / 18.49 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.001547/0.001547, allocations: 215.1 kB / 21.45 MB, free: 1.617 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.414/1.414, allocations: 230.6 MB / 254.8 MB, free: 15.27 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.TickBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 47.92 kB / 373.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1078, allocations: 53.34 MB / 427 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep): time 0.002681/0.1104, allocations: 1.428 MB / 428.4 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001921/0.1106, allocations: 31.86 kB / 428.5 MB, free: 3.367 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.748e-05/0.1107, allocations: 7.938 kB / 428.5 MB, free: 3.359 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.862e-05/0.1107, allocations: 3.984 kB / 428.5 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.452e-05/0.1108, allocations: 3.938 kB / 428.5 MB, free: 3.352 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002261/0.111, allocations: 19.97 kB / 428.5 MB, free: 3.332 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.064e-05/0.1111, allocations: 27.92 kB / 428.5 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.256e-05/0.1111, allocations: 4 kB / 428.5 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.91e-05/0.1112, allocations: 15.92 kB / 428.6 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.524e-05/0.1112, allocations: 19.92 kB / 428.6 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.014e-05/0.1113, allocations: 4 kB / 428.6 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.885e-06/0.1113, allocations: 0 / 428.6 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.662e-05/0.1113, allocations: 8 kB / 428.6 MB, free: 3.254 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.716e-05/0.1113, allocations: 15.92 kB / 428.6 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.051e-05/0.1114, allocations: 27.83 kB / 428.6 MB, free: 3.211 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1114, allocations: 0 / 428.6 MB, free: 3.211 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1114, allocations: 0 / 428.6 MB, free: 3.211 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.876e-06/0.1114, allocations: 0 / 428.6 MB, free: 3.211 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004493/0.1119, allocations: 347.5 kB / 429 MB, free: 2.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.1119, allocations: 11.97 kB / 429 MB, free: 2.809 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.12e-05/0.1119, allocations: 4.125 kB / 429 MB, free: 2.805 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.133e-05/0.1119, allocations: 34.75 kB / 429 MB, free: 2.762 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.1e-05/0.112, allocations: 0.9375 kB / 429 MB, free: 2.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002175/0.1122, allocations: 180.3 kB / 429.2 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.36e-05/0.1122, allocations: 4.375 kB / 429.2 MB, free: 2.543 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.413e-05/0.1122, allocations: 4.375 kB / 429.2 MB, free: 2.539 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003275/0.1126, allocations: 123.6 kB / 429.3 MB, free: 2.406 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.964e-06/0.1126, allocations: 0 / 429.3 MB, free: 2.406 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-06/0.1126, allocations: 4 kB / 429.3 MB, free: 2.402 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.1126, allocations: 4 kB / 429.3 MB, free: 2.398 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001109/0.1127, allocations: 23.92 kB / 429.4 MB, free: 2.375 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001708/0.1129, allocations: 157.7 kB / 429.5 MB, free: 2.172 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000154/0.113, allocations: 46.56 kB / 429.6 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.444e-05/0.1131, allocations: 24.92 kB / 429.6 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.17e-05/0.1131, allocations: 0 / 429.6 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.309e-05/0.1131, allocations: 42.5 kB / 429.6 MB, free: 2.039 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 2.885e-06/0.1131, allocations: 3.984 kB / 429.6 MB, free: 2.035 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002598/0.1134, allocations: 77.55 kB / 429.7 MB, free: 1.953 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.91e-05/0.1134, allocations: 55.41 kB / 429.8 MB, free: 1.887 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.332e-05/0.1135, allocations: 105.9 kB / 429.9 MB, free: 1.773 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.533e-05/0.1135, allocations: 25.7 kB / 429.9 MB, free: 1.742 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.16e-05/0.1136, allocations: 88.06 kB / 430 MB, free: 1.652 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.399e-05/0.1136, allocations: 4 kB / 430 MB, free: 1.648 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.316e-05/0.1136, allocations: 17.72 kB / 430 MB, free: 1.625 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.1138, allocations: 314.8 kB / 430.3 MB, free: 1.309 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.293e-05/0.1138, allocations: 3.984 kB / 430.3 MB, free: 1.305 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.518e-05/0.1138, allocations: 35.44 kB / 430.3 MB, free: 1.258 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.019e-05/0.1139, allocations: 35.38 kB / 430.4 MB, free: 1.211 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1139, allocations: 0 / 430.4 MB, free: 1.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.959e-05/0.114, allocations: 69.58 kB / 430.4 MB, free: 1.137 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.114, allocations: 15.94 kB / 430.5 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.114, allocations: 0 / 430.5 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.114, allocations: 0 / 430.5 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.061e-05/0.1141, allocations: 7.984 kB / 430.5 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.1141, allocations: 4 kB / 430.5 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.764e-05/0.1141, allocations: 0 / 430.5 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.25e-06/0.1141, allocations: 4 kB / 430.5 MB, free: 1.105 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($CLKPRE.step.counter,step.counter,step.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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.019e-05/0.1142, allocations: 113.8 kB / 430.6 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/0.1143, allocations: 65.55 kB / 430.6 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.628e-05/0.1144, allocations: 11.5 kB / 430.7 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.1144, allocations: 0 / 430.7 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.1144, allocations: 0 / 430.7 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.1144, allocations: 0 / 430.7 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001141/0.1145, allocations: 157.7 kB / 430.8 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1145, allocations: 0 / 430.8 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.242e-05/0.1145, allocations: 4 kB / 430.8 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.56e-06/0.1145, allocations: 3.938 kB / 430.8 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.855e-06/0.1145, allocations: 384 / 430.8 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1145, allocations: 0 / 430.8 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.1145, allocations: 8 kB / 430.8 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001683/0.1147, allocations: 93 kB / 430.9 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.099e-05/0.1147, allocations: 81.05 kB / 431 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.806e-05/0.1148, allocations: 7.984 kB / 431 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.71e-05/0.1148, allocations: 0 / 431 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.525e-06/0.1148, allocations: 0 / 431 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.432e-06/0.1148, allocations: 4 kB / 431 MB, free: 468 kB / 350.1 MB Notification: Performance of sorting global known variables: time 4.091e-05/0.1148, allocations: 79.28 kB / 431.1 MB, free: 388 kB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1148, allocations: 8 kB / 431.1 MB, free: 380 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001783/0.115, allocations: 4 kB / 431.1 MB, free: 376 kB / 350.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: 4 (assignClock1.u,assignClock1.y,step.y,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.000594/0.1156, allocations: 0.6475 MB / 431.7 MB, free: 15.69 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001281/0.1157, allocations: 28.17 kB / 431.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1157, allocations: 8 kB / 431.8 MB, free: 15.65 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.52e-07/0.1157, allocations: 0 / 431.8 MB, free: 15.65 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002281/0.116, allocations: 28.28 kB / 431.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001048/0.117, allocations: 1.162 MB / 433 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003246/0.1173, allocations: 0.6846 MB / 433.7 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.614e-05/0.1174, allocations: 3.984 kB / 433.7 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.792e-05/0.1174, allocations: 15.44 kB / 433.7 MB, free: 13.63 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1174, allocations: 0 / 433.7 MB, free: 13.63 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01701/0.1344, allocations: 1.344 MB / 435 MB, free: 12.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.799/7.933, allocations: 21.97 kB / 435 MB, free: 12.43 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.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.482508954009973]