Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.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.0007989/0.0007989, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008466/0.0008466, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8938/0.8938, allocations: 173.3 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] 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.ClockSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 318.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.358e-05/1.516e-05, allocations: 2.281 kB / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.002041/0.002056, allocations: 1.547 MB / 320 MB, free: 4.805 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006283/0.002685, allocations: 466.8 kB / 320.4 MB, free: 4.344 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.506e-05/0.00276, allocations: 3.938 kB / 320.4 MB, free: 4.34 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.765e-05/0.002797, allocations: 3.938 kB / 320.4 MB, free: 4.336 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001309/0.002928, allocations: 15.86 kB / 320.5 MB, free: 4.32 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002115/0.00314, allocations: 55.64 kB / 320.5 MB, free: 4.266 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.077e-05/0.00323, allocations: 51.78 kB / 320.6 MB, free: 4.215 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.411e-05/0.003325, allocations: 20.09 kB / 320.6 MB, free: 4.195 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.385e-05/0.003388, allocations: 27.92 kB / 320.6 MB, free: 4.168 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.506e-05/0.003433, allocations: 15.97 kB / 320.6 MB, free: 4.152 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.197e-05/0.003455, allocations: 4 kB / 320.6 MB, free: 4.148 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.368e-06/0.003465, allocations: 4 kB / 320.6 MB, free: 4.145 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.374e-05/0.003509, allocations: 15.92 kB / 320.6 MB, free: 4.129 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.047e-05/0.003529, allocations: 11.94 kB / 320.7 MB, free: 4.117 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001061/0.003635, allocations: 59.73 kB / 320.7 MB, free: 4.059 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.044e-06/0.003637, allocations: 0 / 320.7 MB, free: 4.059 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.003638, allocations: 0 / 320.7 MB, free: 4.059 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.958e-06/0.003642, allocations: 0 / 320.7 MB, free: 4.059 MB / 282.7 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.0003577/0.004, allocations: 302 kB / 321 MB, free: 3.734 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.004039, allocations: 12.92 kB / 321 MB, free: 3.723 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.927e-05/0.004068, allocations: 38.75 kB / 321.1 MB, free: 3.676 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.234e-05/0.004091, allocations: 12.84 kB / 321.1 MB, free: 3.664 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000165/0.004256, allocations: 141.6 kB / 321.2 MB, free: 3.5 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.057e-06/0.004265, allocations: 4.375 kB / 321.2 MB, free: 3.496 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.327e-06/0.004274, allocations: 4.375 kB / 321.2 MB, free: 3.492 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000209/0.004483, allocations: 97.61 kB / 321.3 MB, free: 3.379 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.00449, allocations: 4.188 kB / 321.3 MB, free: 3.375 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.727e-06/0.004499, allocations: 3.938 kB / 321.3 MB, free: 3.371 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.004505, allocations: 3.984 kB / 321.3 MB, free: 3.367 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.54e-05/0.004551, allocations: 19.94 kB / 321.3 MB, free: 3.348 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002402/0.004791, allocations: 228.9 kB / 321.6 MB, free: 3.078 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.741e-05/0.004848, allocations: 49.09 kB / 321.6 MB, free: 3.012 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.783e-05/0.004876, allocations: 21.77 kB / 321.6 MB, free: 2.984 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.777e-05/0.004894, allocations: 4 kB / 321.6 MB, free: 2.98 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.904e-05/0.004913, allocations: 34.56 kB / 321.7 MB, free: 2.938 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 1.312e-06/0.004914, allocations: 0 / 321.7 MB, free: 2.938 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001672/0.005082, allocations: 73.56 kB / 321.7 MB, free: 2.859 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.826e-05/0.00512, allocations: 77.11 kB / 321.8 MB, free: 2.766 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003448/0.005465, allocations: 141.8 kB / 322 MB, free: 2.617 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.646e-06/0.005473, allocations: 25.7 kB / 322 MB, free: 2.586 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.673e-05/0.00551, allocations: 92.08 kB / 322.1 MB, free: 2.492 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.251e-05/0.005522, allocations: 7.953 kB / 322.1 MB, free: 2.484 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.625e-05/0.005549, allocations: 9.969 kB / 322.1 MB, free: 2.469 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.097e-05/0.00563, allocations: 326.8 kB / 322.4 MB, free: 2.141 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.034e-05/0.00565, allocations: 4 kB / 322.4 MB, free: 2.137 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.636e-05/0.005666, allocations: 11.92 kB / 322.4 MB, free: 2.125 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.815e-05/0.005705, allocations: 16.86 kB / 322.4 MB, free: 2.105 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.005707, allocations: 7.938 kB / 322.5 MB, free: 2.098 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.349e-05/0.005771, allocations: 53.56 kB / 322.5 MB, free: 2.039 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.075e-05/0.005781, allocations: 4 kB / 322.5 MB, free: 2.035 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.005785, allocations: 4.094 kB / 322.5 MB, free: 2.031 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.004e-05/0.005796, allocations: 0 / 322.5 MB, free: 2.031 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.137e-05/0.005847, allocations: 7.938 kB / 322.5 MB, free: 2.023 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.737e-06/0.005851, allocations: 0 / 322.5 MB, free: 2.023 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.675e-05/0.005867, allocations: 4 kB / 322.5 MB, free: 2.02 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-06/0.005874, allocations: 3.984 kB / 322.5 MB, free: 2.016 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 5.348e-05/0.005928, allocations: 113.8 kB / 322.6 MB, free: 1.895 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.976e-05/0.005958, allocations: 45.59 kB / 322.7 MB, free: 1.844 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.313e-05/0.005981, allocations: 11.8 kB / 322.7 MB, free: 1.832 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.005982, allocations: 4.031 kB / 322.7 MB, free: 1.828 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.005986, allocations: 0 / 322.7 MB, free: 1.828 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-06/0.005988, allocations: 0 / 322.7 MB, free: 1.828 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.976e-05/0.006088, allocations: 140.7 kB / 322.8 MB, free: 1.648 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.006089, allocations: 4 kB / 322.8 MB, free: 1.645 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.8e-05/0.006107, allocations: 7.984 kB / 322.8 MB, free: 1.637 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.82e-07/0.006108, allocations: 0 / 322.8 MB, free: 1.637 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.849e-06/0.006113, allocations: 0 / 322.8 MB, free: 1.637 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.81e-07/0.006113, allocations: 4 kB / 322.9 MB, free: 1.633 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.006114, allocations: 0 / 322.9 MB, free: 1.633 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.95e-05/0.006203, allocations: 168.2 kB / 323 MB, free: 1.449 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.576e-05/0.006229, allocations: 19.88 kB / 323 MB, free: 1.43 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.25e-05/0.006242, allocations: 7.984 kB / 323 MB, free: 1.422 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.149e-05/0.006273, allocations: 0 / 323 MB, free: 1.422 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.241e-05/0.006296, allocations: 0 / 323 MB, free: 1.422 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.576e-06/0.006299, allocations: 4 kB / 323 MB, free: 1.418 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.231e-05/0.006351, allocations: 109.7 kB / 323.2 MB, free: 1.312 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006352, allocations: 0 / 323.2 MB, free: 1.312 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001399/0.006491, allocations: 8 kB / 323.2 MB, free: 1.305 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0002439/0.006735, allocations: 0.6937 MB / 323.9 MB, free: 0.582 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 7.626e-05/0.006812, allocations: 19.98 kB / 323.9 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.092e-06/0.006813, allocations: 0 / 323.9 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.805e-05/0.006831, allocations: 11.94 kB / 323.9 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002391/0.00707, allocations: 27.02 kB / 323.9 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008459/0.007916, allocations: 1.29 MB / 325.2 MB, free: 15.15 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.083e-05/0.007967, allocations: 75.33 kB / 325.3 MB, free: 15.05 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.194e-05/0.007988, allocations: 0 / 325.3 MB, free: 15.05 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.571e-05/0.008024, allocations: 20.5 kB / 325.3 MB, free: 15.04 MB / 298.7 MB Notification: Performance of SimCode: time 3.81e-07/0.008025, allocations: 0 / 325.3 MB, free: 15.04 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0151/0.02313, allocations: 2.309 MB / 327.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.83/6.853, allocations: 11.17 kB / 327.6 MB, free: 12.85 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79319e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.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.509750422090292]