Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.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.0008521/0.0008521, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008896/0.0008896, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8546/0.8546, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.183e-06/1.183e-06, allocations: 0 / 324.6 MB, free: 15.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.209e-05/1.328e-05, allocations: 2.281 kB / 324.6 MB, free: 15.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.002081/0.002094, allocations: 1.891 MB / 326.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001187/0.003282, allocations: 1.149 MB / 327.6 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.632e-05/0.003378, allocations: 7.938 kB / 327.6 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004613/0.003839, allocations: 162.3 kB / 327.8 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002563/0.004096, allocations: 159.3 kB / 327.9 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002768/0.004372, allocations: 171.3 kB / 328.1 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001964/0.004569, allocations: 199.4 kB / 328.3 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001018/0.004671, allocations: 25.72 kB / 328.3 MB, free: 12.06 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004082/0.005079, allocations: 103.7 kB / 328.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.017e-05/0.005169, allocations: 63.8 kB / 328.5 MB, free: 11.9 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.07e-05/0.00519, allocations: 12 kB / 328.5 MB, free: 11.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001023/0.005292, allocations: 55.91 kB / 328.5 MB, free: 11.83 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.682e-05/0.005359, allocations: 47.77 kB / 328.6 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.133e-05/0.00541, allocations: 43.84 kB / 328.6 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002327/0.005643, allocations: 207.3 kB / 328.8 MB, free: 11.54 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.543e-06/0.005644, allocations: 0 / 328.8 MB, free: 11.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.163e-06/0.005645, allocations: 0 / 328.8 MB, free: 11.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.107e-06/0.00565, allocations: 4 kB / 328.8 MB, free: 11.54 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005192/0.006169, allocations: 453.8 kB / 329.3 MB, free: 11.06 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.077e-05/0.006199, allocations: 8.031 kB / 329.3 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.797e-05/0.006227, allocations: 42.73 kB / 329.3 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.524e-05/0.006263, allocations: 20.8 kB / 329.3 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002268/0.006489, allocations: 212.8 kB / 329.6 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.021e-05/0.0065, allocations: 384 / 329.6 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.144e-05/0.006511, allocations: 8.359 kB / 329.6 MB, free: 10.74 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002233/0.006734, allocations: 150.2 kB / 329.7 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.006742, allocations: 3.938 kB / 329.7 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.006752, allocations: 8 kB / 329.7 MB, free: 10.56 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.006757, allocations: 0 / 329.7 MB, free: 10.56 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.971e-05/0.006827, allocations: 27.98 kB / 329.8 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003397/0.007166, allocations: 329.5 kB / 330.1 MB, free: 10.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001391/0.007305, allocations: 111.9 kB / 330.2 MB, free: 10.03 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.542e-05/0.007351, allocations: 38.56 kB / 330.2 MB, free: 9.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.735e-05/0.007368, allocations: 4 kB / 330.2 MB, free: 9.977 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001054/0.007473, allocations: 75.33 kB / 330.3 MB, free: 9.891 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.122e-06/0.007475, allocations: 0 / 330.3 MB, free: 9.891 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002334/0.007708, allocations: 149.4 kB / 330.4 MB, free: 9.738 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.98e-05/0.007758, allocations: 115 kB / 330.6 MB, free: 9.602 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001873/0.007945, allocations: 273.9 kB / 330.8 MB, free: 9.32 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.104e-05/0.007956, allocations: 25.7 kB / 330.8 MB, free: 9.289 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.519e-05/0.008011, allocations: 116.1 kB / 331 MB, free: 9.172 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.991e-05/0.008031, allocations: 23.83 kB / 331 MB, free: 9.148 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.263e-05/0.008064, allocations: 29.67 kB / 331 MB, free: 9.113 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.876e-05/0.008143, allocations: 330.8 kB / 331.3 MB, free: 8.781 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.385e-05/0.008176, allocations: 23.94 kB / 331.4 MB, free: 8.758 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.94e-05/0.008226, allocations: 72.25 kB / 331.4 MB, free: 8.672 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.259e-05/0.008288, allocations: 53.95 kB / 331.5 MB, free: 8.613 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.00829, allocations: 4.031 kB / 331.5 MB, free: 8.609 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001007/0.008391, allocations: 101.5 kB / 331.6 MB, free: 8.504 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/0.008402, allocations: 8 kB / 331.6 MB, free: 8.496 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.187e-06/0.008407, allocations: 0 / 331.6 MB, free: 8.496 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.888e-06/0.008417, allocations: 0 / 331.6 MB, free: 8.496 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.956e-05/0.008466, allocations: 8 kB / 331.6 MB, free: 8.488 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.008472, allocations: 4 kB / 331.6 MB, free: 8.484 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.115e-05/0.008503, allocations: 7.984 kB / 331.6 MB, free: 8.477 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.05e-06/0.008508, allocations: 0 / 331.6 MB, free: 8.477 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.398e-05/0.008592, allocations: 150.8 kB / 331.8 MB, free: 8.32 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.707e-05/0.008639, allocations: 61.56 kB / 331.8 MB, free: 8.254 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001518/0.008791, allocations: 123.4 kB / 331.9 MB, free: 8.133 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.008794, allocations: 4 kB / 331.9 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.008799, allocations: 0 / 331.9 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.008802, allocations: 0 / 331.9 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001191/0.008921, allocations: 188.6 kB / 332.1 MB, free: 7.902 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-06/0.008922, allocations: 0 / 332.1 MB, free: 7.902 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.839e-05/0.008941, allocations: 8 kB / 332.1 MB, free: 7.895 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.008943, allocations: 4.047 kB / 332.1 MB, free: 7.891 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.667e-06/0.008952, allocations: 8 kB / 332.1 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.008954, allocations: 0 / 332.1 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.008954, allocations: 0 / 332.1 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001302/0.009085, allocations: 162.6 kB / 332.3 MB, free: 7.699 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.708e-05/0.009132, allocations: 43.77 kB / 332.3 MB, free: 7.656 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.618e-05/0.009148, allocations: 0 / 332.3 MB, free: 7.656 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.952e-05/0.009177, allocations: 4.062 kB / 332.4 MB, free: 7.652 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.675e-05/0.009214, allocations: 16.08 kB / 332.4 MB, free: 7.637 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.235e-05/0.009227, allocations: 7.938 kB / 332.4 MB, free: 7.629 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001189/0.009346, allocations: 201.2 kB / 332.6 MB, free: 7.438 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009346, allocations: 7.938 kB / 332.6 MB, free: 7.43 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001539/0.009499, allocations: 28 kB / 332.6 MB, free: 7.402 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0009066/0.01041, allocations: 1.041 MB / 333.6 MB, free: 6.512 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001222/0.01053, allocations: 63.91 kB / 333.7 MB, free: 6.449 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.01053, allocations: 0 / 333.7 MB, free: 6.449 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.827e-05/0.01057, allocations: 24 kB / 333.7 MB, free: 6.426 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002456/0.01081, allocations: 71.39 kB / 333.8 MB, free: 6.359 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001615/0.01243, allocations: 1.907 MB / 335.7 MB, free: 4.34 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.161e-05/0.0125, allocations: 115.4 kB / 335.8 MB, free: 4.207 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.176e-05/0.01255, allocations: 29.8 kB / 335.9 MB, free: 4.176 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.244e-05/0.01261, allocations: 52.48 kB / 335.9 MB, free: 4.125 MB / 298.7 MB Notification: Performance of SimCode: time 5.01e-07/0.01261, allocations: 0 / 335.9 MB, free: 4.125 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01727/0.02989, allocations: 5.527 MB / 341.4 MB, free: 14.66 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.662/6.692, allocations: 4 kB / 341.4 MB, free: 14.66 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79247e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.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: 8.332370717078447]