Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.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.001797/0.001797, allocations: 114.3 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.002146/0.002146, allocations: 219 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.411/1.411, allocations: 230.6 MB / 254.8 MB, free: 15.07 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.TimeBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 51.92 kB / 373.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1144, allocations: 53.33 MB / 427 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.002906/0.1173, allocations: 1.454 MB / 428.5 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003102/0.1176, allocations: 103.7 kB / 428.6 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.443e-05/0.1177, allocations: 0 / 428.6 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.541e-05/0.1177, allocations: 3.938 kB / 428.6 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.838e-05/0.1178, allocations: 0 / 428.6 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002781/0.118, allocations: 27.91 kB / 428.6 MB, free: 3.172 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.48e-05/0.1181, allocations: 27.92 kB / 428.6 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/0.1182, allocations: 4 kB / 428.6 MB, free: 3.141 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.662e-05/0.1183, allocations: 15.88 kB / 428.6 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.801e-05/0.1183, allocations: 15.92 kB / 428.7 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.903e-05/0.1183, allocations: 4 kB / 428.7 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.117e-06/0.1184, allocations: 0 / 428.7 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.043e-05/0.1184, allocations: 4 kB / 428.7 MB, free: 3.102 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.28e-05/0.1184, allocations: 11.88 kB / 428.7 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001011/0.1185, allocations: 35.83 kB / 428.7 MB, free: 3.055 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1185, allocations: 0 / 428.7 MB, free: 3.055 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1185, allocations: 0 / 428.7 MB, free: 3.055 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.708e-06/0.1185, allocations: 4 kB / 428.7 MB, free: 3.051 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.0004945/0.119, allocations: 343.4 kB / 429.1 MB, free: 2.664 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.1191, allocations: 8.031 kB / 429.1 MB, free: 2.656 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.674e-05/0.1191, allocations: 192 / 429.1 MB, free: 2.656 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.721e-05/0.1191, allocations: 38.75 kB / 429.1 MB, free: 2.609 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.933e-05/0.1191, allocations: 12.83 kB / 429.1 MB, free: 2.598 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002334/0.1194, allocations: 168.4 kB / 429.3 MB, free: 2.395 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.1194, allocations: 8.375 kB / 429.3 MB, free: 2.387 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.566e-05/0.1194, allocations: 8.359 kB / 429.3 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003156/0.1197, allocations: 103.6 kB / 429.4 MB, free: 2.266 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.1197, allocations: 0 / 429.4 MB, free: 2.266 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.454e-06/0.1197, allocations: 0 / 429.4 MB, free: 2.266 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.1197, allocations: 4 kB / 429.4 MB, free: 2.262 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.026e-05/0.1198, allocations: 19.98 kB / 429.4 MB, free: 2.242 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001589/0.12, allocations: 157.6 kB / 429.6 MB, free: 2.039 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001584/0.1201, allocations: 54.48 kB / 429.6 MB, free: 1.977 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.916e-05/0.1202, allocations: 24.92 kB / 429.6 MB, free: 1.949 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.1202, allocations: 3.984 kB / 429.7 MB, free: 1.945 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.979e-05/0.1202, allocations: 38.5 kB / 429.7 MB, free: 1.898 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 9.11e-07/0.1202, allocations: 0 / 429.7 MB, free: 1.898 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002305/0.1205, allocations: 73.61 kB / 429.8 MB, free: 1.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.498e-05/0.1205, allocations: 59.33 kB / 429.8 MB, free: 1.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.045e-05/0.1206, allocations: 105.9 kB / 429.9 MB, free: 1.637 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.199e-05/0.1206, allocations: 29.7 kB / 430 MB, free: 1.602 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.347e-05/0.1207, allocations: 84.12 kB / 430 MB, free: 1.516 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.947e-06/0.1207, allocations: 8 kB / 430 MB, free: 1.508 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.161e-05/0.1207, allocations: 13.72 kB / 430.1 MB, free: 1.488 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.1209, allocations: 318.8 kB / 430.4 MB, free: 1.168 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.048e-05/0.1209, allocations: 0 / 430.4 MB, free: 1.168 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.944e-05/0.1209, allocations: 31.59 kB / 430.4 MB, free: 1.125 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.981e-05/0.121, allocations: 43.38 kB / 430.4 MB, free: 1.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.121, allocations: 0 / 430.4 MB, free: 1.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.05e-05/0.121, allocations: 61.52 kB / 430.5 MB, free: 1.004 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.1211, allocations: 7.938 kB / 430.5 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.261e-06/0.1211, allocations: 4 kB / 430.5 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.1211, allocations: 4.125 kB / 430.5 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.94e-05/0.1211, allocations: 11.94 kB / 430.5 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.1211, allocations: 0 / 430.5 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.709e-05/0.1212, allocations: 0 / 430.5 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.125e-06/0.1212, allocations: 8 kB / 430.5 MB, free: 0.9688 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: 3 (assignClock1.y,assignClock1.u,step.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 9.446e-05/0.1213, allocations: 109.8 kB / 430.6 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000111/0.1214, allocations: 61.62 kB / 430.7 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.207e-05/0.1214, allocations: 3.906 kB / 430.7 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.1214, allocations: 0 / 430.7 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.1214, allocations: 8.25 kB / 430.7 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.1214, allocations: 0 / 430.7 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001224/0.1215, allocations: 169.5 kB / 430.9 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.1215, allocations: 0 / 430.9 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.996e-05/0.1216, allocations: 4 kB / 430.9 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.107e-06/0.1216, allocations: 3.938 kB / 430.9 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-06/0.1216, allocations: 4 kB / 430.9 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1216, allocations: 0 / 430.9 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.1216, allocations: 3.984 kB / 430.9 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001425/0.1218, allocations: 85.08 kB / 431 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.569e-05/0.1218, allocations: 85.03 kB / 431.1 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.48e-05/0.1218, allocations: 4 kB / 431.1 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.33e-05/0.1218, allocations: 4 kB / 431.1 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.715e-06/0.1218, allocations: 3.938 kB / 431.1 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.717e-06/0.1219, allocations: 0 / 431.1 MB, free: 324 kB / 350.1 MB Notification: Performance of sorting global known variables: time 4.667e-05/0.1219, allocations: 79.28 kB / 431.1 MB, free: 244 kB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1219, allocations: 4 kB / 431.2 MB, free: 240 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001806/0.1221, allocations: 8 kB / 431.2 MB, free: 232 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: 3 (step.y,assignClock1.u,assignClock1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * 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.0005011/0.1226, allocations: 0.6279 MB / 431.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001211/0.1227, allocations: 23.92 kB / 431.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1227, allocations: 4.25 kB / 431.8 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.677e-06/0.1227, allocations: 4 kB / 431.8 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.0002128/0.1229, allocations: 19.97 kB / 431.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00106/0.124, allocations: 1.158 MB / 433 MB, free: 14.26 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002867/0.1243, allocations: 0.6768 MB / 433.7 MB, free: 13.56 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.372e-05/0.1243, allocations: 4 kB / 433.7 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.936e-05/0.1243, allocations: 11.44 kB / 433.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1243, allocations: 0 / 433.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01713/0.1414, allocations: 1.294 MB / 435 MB, free: 12.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.778/7.919, allocations: 16.61 kB / 435 MB, free: 12.4 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock1.y Variables in the result:assignClock1.u,assignClock1.y,periodicClock1.period,periodicClock1.useSolver,step.height,step.offset,step.startTime,step.y,time [Calling sys.exit(0), Time elapsed: 10.554297806986142]