Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.001651/0.001651, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.00198/0.00198, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.474/1.474, allocations: 230.6 MB / 254.1 MB, free: 15.06 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.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 51.94 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1074, allocations: 53.33 MB / 426.3 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.002748/0.1102, allocations: 1.432 MB / 427.7 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002046/0.1104, allocations: 31.91 kB / 427.8 MB, free: 3.312 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.592e-05/0.1105, allocations: 7.938 kB / 427.8 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.098e-05/0.1105, allocations: 3.938 kB / 427.8 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.384e-05/0.1105, allocations: 3.938 kB / 427.8 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002479/0.1108, allocations: 19.97 kB / 427.8 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.942e-05/0.1109, allocations: 23.92 kB / 427.8 MB, free: 3.254 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.111, allocations: 11.98 kB / 427.8 MB, free: 3.242 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.835e-05/0.111, allocations: 15.92 kB / 427.9 MB, free: 3.227 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.116e-05/0.1111, allocations: 15.92 kB / 427.9 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.402e-05/0.1111, allocations: 4 kB / 427.9 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.056e-05/0.1111, allocations: 4 kB / 427.9 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.906e-05/0.1111, allocations: 8 kB / 427.9 MB, free: 3.195 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.673e-05/0.1112, allocations: 19.86 kB / 427.9 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001026/0.1113, allocations: 27.83 kB / 427.9 MB, free: 3.148 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1113, allocations: 4 kB / 427.9 MB, free: 3.145 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1113, allocations: 0 / 427.9 MB, free: 3.145 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.129e-06/0.1113, allocations: 0 / 427.9 MB, free: 3.145 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.000525/0.1118, allocations: 343.5 kB / 428.3 MB, free: 2.758 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.1119, allocations: 8.031 kB / 428.3 MB, free: 2.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.679e-05/0.1119, allocations: 30.75 kB / 428.3 MB, free: 2.711 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.689e-05/0.1119, allocations: 12.89 kB / 428.3 MB, free: 2.699 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000255/0.1122, allocations: 184.2 kB / 428.5 MB, free: 2.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/0.1122, allocations: 4.375 kB / 428.5 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.971e-05/0.1122, allocations: 8.359 kB / 428.5 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003756/0.1126, allocations: 123.8 kB / 428.6 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.1126, allocations: 3.938 kB / 428.6 MB, free: 2.332 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.368e-06/0.1126, allocations: 4 kB / 428.7 MB, free: 2.328 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.1126, allocations: 0 / 428.7 MB, free: 2.328 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001221/0.1128, allocations: 27.97 kB / 428.7 MB, free: 2.301 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001642/0.1129, allocations: 153.7 kB / 428.8 MB, free: 2.102 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001719/0.1131, allocations: 54.48 kB / 428.9 MB, free: 2.039 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.82e-05/0.1132, allocations: 28.91 kB / 428.9 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.376e-05/0.1132, allocations: 4 kB / 428.9 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.591e-05/0.1132, allocations: 38.5 kB / 429 MB, free: 1.957 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 9.52e-07/0.1132, allocations: 0 / 429 MB, free: 1.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002858/0.1135, allocations: 89.48 kB / 429 MB, free: 1.863 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.702e-05/0.1136, allocations: 55.41 kB / 429.1 MB, free: 1.797 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.608e-05/0.1137, allocations: 105.8 kB / 429.2 MB, free: 1.684 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.482e-05/0.1137, allocations: 25.7 kB / 429.2 MB, free: 1.652 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.864e-05/0.1137, allocations: 84.14 kB / 429.3 MB, free: 1.566 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.238e-05/0.1138, allocations: 4 kB / 429.3 MB, free: 1.562 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.33e-05/0.1138, allocations: 21.72 kB / 429.3 MB, free: 1.535 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.1139, allocations: 314.8 kB / 429.6 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.537e-05/0.114, allocations: 8 kB / 429.6 MB, free: 1.211 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.048e-05/0.114, allocations: 23.44 kB / 429.7 MB, free: 1.176 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.348e-05/0.114, allocations: 43.36 kB / 429.7 MB, free: 1.121 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.114, allocations: 0 / 429.7 MB, free: 1.121 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.808e-05/0.1141, allocations: 61.59 kB / 429.8 MB, free: 1.055 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.1142, allocations: 7.938 kB / 429.8 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.1142, allocations: 4 kB / 429.8 MB, free: 1.043 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.1142, allocations: 3.984 kB / 429.8 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.245e-05/0.1142, allocations: 11.94 kB / 429.8 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.1142, allocations: 4.125 kB / 429.8 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.805e-05/0.1143, allocations: 0 / 429.8 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.837e-06/0.1143, allocations: 4 kB / 429.8 MB, free: 1.02 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.39e-05/0.1143, allocations: 113.8 kB / 429.9 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001589/0.1145, allocations: 65.56 kB / 430 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.701e-05/0.1145, allocations: 11.91 kB / 430 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.1145, allocations: 3.984 kB / 430 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.1145, allocations: 3.938 kB / 430 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.1145, allocations: 8.172 kB / 430 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000124/0.1147, allocations: 153.7 kB / 430.2 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1147, allocations: 0 / 430.2 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.328e-05/0.1147, allocations: 20.28 kB / 430.2 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.1147, allocations: 3.938 kB / 430.2 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.038e-05/0.1147, allocations: 4 kB / 430.2 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.1147, allocations: 4 kB / 430.2 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1147, allocations: 0 / 430.2 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001841/0.1149, allocations: 89.09 kB / 430.3 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.452e-05/0.115, allocations: 85.06 kB / 430.4 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.78e-05/0.115, allocations: 7.938 kB / 430.4 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.241e-05/0.115, allocations: 4 kB / 430.4 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.895e-06/0.115, allocations: 0 / 430.4 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.907e-06/0.115, allocations: 0 / 430.4 MB, free: 348 kB / 350.1 MB Notification: Performance of sorting global known variables: time 5.097e-05/0.1151, allocations: 91.27 kB / 430.5 MB, free: 256 kB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1151, allocations: 0 / 430.5 MB, free: 256 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001938/0.1153, allocations: 4 kB / 430.5 MB, free: 252 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.0006132/0.1159, allocations: 0.6475 MB / 431.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000146/0.116, allocations: 35.92 kB / 431.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1161, allocations: 0 / 431.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 7.01e-07/0.1161, allocations: 0 / 431.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/0.1163, allocations: 24.02 kB / 431.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/0.1175, allocations: 1.18 MB / 432.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000317/0.1178, allocations: 0.6807 MB / 433 MB, free: 13.53 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.842e-05/0.1178, allocations: 0 / 433 MB, free: 13.53 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.235e-05/0.1179, allocations: 23.42 kB / 433.1 MB, free: 13.5 MB / 366.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1179, allocations: 3.938 kB / 433.1 MB, free: 13.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02309/0.1409, allocations: 1.381 MB / 434.4 MB, free: 12.26 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.618/7.758, allocations: 3.938 kB / 434.4 MB, free: 12.25 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.288737887982279]