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.001273/0.001273, allocations: 108.6 kB / 21.22 MB, free: 0.7305 MB / 14.72 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.001576/0.001576, allocations: 191.5 kB / 24.51 MB, free: 4.082 MB / 14.72 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 1.38/1.38, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 43.92 kB / 371.2 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.2651, allocations: 52.19 MB / 423.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.002829/0.2679, allocations: 1.579 MB / 425 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008542/0.2688, allocations: 498.7 kB / 425.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.121e-05/0.2688, allocations: 0 / 425.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.112e-05/0.2689, allocations: 7.938 kB / 425.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001236/0.269, allocations: 15.84 kB / 425.5 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000246/0.2693, allocations: 51.83 kB / 425.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001052/0.2694, allocations: 47.8 kB / 425.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.844e-05/0.2694, allocations: 12.17 kB / 425.6 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.194e-05/0.2695, allocations: 27.91 kB / 425.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.531e-05/0.2696, allocations: 15.88 kB / 425.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.016e-05/0.2696, allocations: 4 kB / 425.7 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.166e-05/0.2696, allocations: 4 kB / 425.7 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.852e-05/0.2697, allocations: 19.86 kB / 425.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.918e-05/0.2697, allocations: 27.8 kB / 425.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001362/0.2698, allocations: 56.53 kB / 425.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.2698, allocations: 0 / 425.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2698, allocations: 4 kB / 425.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.2698, allocations: 0 / 425.8 MB, free: 12.25 MB / 334.1 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.000491/0.2703, allocations: 306 kB / 426.1 MB, free: 11.92 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.2704, allocations: 8.031 kB / 426.1 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.496e-05/0.2704, allocations: 4.188 kB / 426.1 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.739e-05/0.2704, allocations: 34.75 kB / 426.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.612e-05/0.2705, allocations: 8.891 kB / 426.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002188/0.2707, allocations: 150.3 kB / 426.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.35e-06/0.2707, allocations: 4.312 kB / 426.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.488e-05/0.2707, allocations: 8.125 kB / 426.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002703/0.271, allocations: 109 kB / 426.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.271, allocations: 3.938 kB / 426.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.784e-06/0.271, allocations: 4 kB / 426.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.271, allocations: 0 / 426.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.54e-05/0.2711, allocations: 19.98 kB / 426.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002979/0.2714, allocations: 236.8 kB / 426.6 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.319e-05/0.2714, allocations: 41.27 kB / 426.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.918e-05/0.2715, allocations: 21.72 kB / 426.7 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.515e-05/0.2715, allocations: 0 / 426.7 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.441e-05/0.2715, allocations: 34.5 kB / 426.7 MB, free: 11.11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 7.91e-07/0.2715, allocations: 0 / 426.7 MB, free: 11.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002326/0.2718, allocations: 73.78 kB / 426.8 MB, free: 11.04 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.56e-05/0.2718, allocations: 81.11 kB / 426.9 MB, free: 10.94 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.272, allocations: 144.2 kB / 427 MB, free: 10.79 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.272, allocations: 25.7 kB / 427.1 MB, free: 10.76 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.761e-05/0.272, allocations: 88.14 kB / 427.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.638e-05/0.2721, allocations: 11.92 kB / 427.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.572e-05/0.2721, allocations: 17.67 kB / 427.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.2722, allocations: 322.8 kB / 427.5 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.058e-05/0.2723, allocations: 7.984 kB / 427.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.959e-05/0.2723, allocations: 17.72 kB / 427.5 MB, free: 10.28 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.978e-05/0.2724, allocations: 29.64 kB / 427.5 MB, free: 10.24 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.2724, allocations: 0 / 427.5 MB, free: 10.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001196/0.2725, allocations: 65.72 kB / 427.6 MB, free: 10.17 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.2725, allocations: 4 kB / 427.6 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.333e-06/0.2725, allocations: 3.984 kB / 427.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.2725, allocations: 0 / 427.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.326e-05/0.2726, allocations: 4 kB / 427.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.2726, allocations: 7.938 kB / 427.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.207e-05/0.2726, allocations: 0 / 427.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.286e-05/0.2726, allocations: 7.984 kB / 427.6 MB, free: 10.14 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (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 prepare postOptimizeDAE: time 8.734e-05/0.2727, allocations: 121.8 kB / 427.7 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.378e-05/0.2728, allocations: 37.66 kB / 427.8 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.456e-05/0.2728, allocations: 11.8 kB / 427.8 MB, free: 9.961 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.2728, allocations: 0 / 427.8 MB, free: 9.961 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.2728, allocations: 4 kB / 427.8 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.2728, allocations: 0 / 427.8 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001653/0.273, allocations: 148.6 kB / 427.9 MB, free: 9.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.273, allocations: 4 kB / 428 MB, free: 9.766 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.199e-05/0.273, allocations: 4 kB / 428 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.273, allocations: 3.938 kB / 428 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-06/0.273, allocations: 8.016 kB / 428 MB, free: 9.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.273, allocations: 0 / 428 MB, free: 9.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.2731, allocations: 3.938 kB / 428 MB, free: 9.746 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001646/0.2732, allocations: 156.3 kB / 428.1 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.961e-05/0.2733, allocations: 23.94 kB / 428.1 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.37e-05/0.2733, allocations: 4.031 kB / 428.2 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.377e-05/0.2733, allocations: 0 / 428.2 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.753e-05/0.2734, allocations: 4 kB / 428.2 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.158e-05/0.2734, allocations: 3.984 kB / 428.2 MB, free: 9.539 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.774e-05/0.2734, allocations: 107.2 kB / 428.3 MB, free: 9.434 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2734, allocations: 0 / 428.3 MB, free: 9.434 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000214/0.2737, allocations: 8 kB / 428.3 MB, free: 9.426 MB / 334.1 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.0004608/0.2741, allocations: 0.6936 MB / 429 MB, free: 8.703 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001191/0.2742, allocations: 19.98 kB / 429 MB, free: 8.684 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2742, allocations: 0 / 429 MB, free: 8.684 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.062e-05/0.2743, allocations: 16.08 kB / 429 MB, free: 8.668 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/0.2746, allocations: 22.66 kB / 429 MB, free: 8.648 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001284/0.2759, allocations: 1.311 MB / 430.3 MB, free: 7.246 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000301/0.2762, allocations: 0.6923 MB / 431 MB, free: 6.527 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.816e-05/0.2762, allocations: 11.92 kB / 431 MB, free: 6.516 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.31e-05/0.2763, allocations: 19.44 kB / 431.1 MB, free: 6.496 MB / 334.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2763, allocations: 0 / 431.1 MB, free: 6.496 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02093/0.2972, allocations: 1.736 MB / 432.8 MB, free: 4.906 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/10.85, allocations: 6.406 kB / 432.8 MB, free: 4.902 MB / 334.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/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: 13.236288966028951]