Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.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.001225/0.001225, allocations: 79.7 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.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.001193/0.001193, allocations: 174 kB / 23.94 MB, free: 0.6172 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.8794/0.8794, allocations: 177.1 MB / 204.3 MB, free: 5.73 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.ClockSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.954e-06/1.954e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.001e-05/2.196e-05, allocations: 4.672 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.003182/0.003204, allocations: 1.571 MB / 326.1 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.004229, allocations: 0.5258 MB / 326.7 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.796e-05/0.004307, allocations: 3.938 kB / 326.7 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.076e-05/0.004347, allocations: 11.92 kB / 326.7 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001249/0.004472, allocations: 3.938 kB / 326.7 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000286/0.004758, allocations: 71.67 kB / 326.7 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000196/0.004954, allocations: 51.8 kB / 326.8 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001359/0.00509, allocations: 12.11 kB / 326.8 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002091/0.005299, allocations: 39.84 kB / 326.8 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.774e-05/0.005357, allocations: 11.98 kB / 326.9 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.745e-05/0.005375, allocations: 4 kB / 326.9 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.341e-05/0.005418, allocations: 7.984 kB / 326.9 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.806e-05/0.005466, allocations: 15.92 kB / 326.9 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.519e-05/0.005491, allocations: 15.94 kB / 326.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001564/0.005648, allocations: 59.78 kB / 327 MB, free: 13.53 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.005652, allocations: 8 kB / 327 MB, free: 13.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.005654, allocations: 0 / 327 MB, free: 13.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.005658, allocations: 0 / 327 MB, free: 13.52 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004451/0.006103, allocations: 305.2 kB / 327.3 MB, free: 13.2 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.006143, allocations: 15.97 kB / 327.3 MB, free: 13.18 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.869e-05/0.006172, allocations: 34.75 kB / 327.3 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001105/0.006282, allocations: 20.88 kB / 327.3 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002213/0.006504, allocations: 142.2 kB / 327.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.276e-06/0.006512, allocations: 4.375 kB / 327.5 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.023e-05/0.006522, allocations: 4.375 kB / 327.5 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002261/0.006748, allocations: 113.1 kB / 327.6 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-06/0.006755, allocations: 3.938 kB / 327.6 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-06/0.006764, allocations: 8 kB / 327.6 MB, free: 12.81 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.006769, allocations: 0 / 327.6 MB, free: 12.81 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.302e-05/0.006812, allocations: 15.92 kB / 327.6 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002654/0.007077, allocations: 236.8 kB / 327.9 MB, free: 12.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.523e-05/0.007142, allocations: 45.2 kB / 327.9 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.949e-05/0.007172, allocations: 17.72 kB / 327.9 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.862e-05/0.00719, allocations: 0 / 327.9 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.865e-05/0.007209, allocations: 34.56 kB / 327.9 MB, free: 12.39 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 7.92e-07/0.00721, allocations: 0 / 327.9 MB, free: 12.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001757/0.007386, allocations: 69.56 kB / 328 MB, free: 12.31 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.592e-05/0.007432, allocations: 81.36 kB / 328.1 MB, free: 12.21 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.132e-05/0.007523, allocations: 152.8 kB / 328.2 MB, free: 12.06 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.037e-06/0.007532, allocations: 25.7 kB / 328.3 MB, free: 12.03 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.098e-05/0.007573, allocations: 92.09 kB / 328.4 MB, free: 11.93 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.267e-05/0.007586, allocations: 7.938 kB / 328.4 MB, free: 11.93 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.414e-05/0.00761, allocations: 13.7 kB / 328.4 MB, free: 11.91 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.522e-05/0.007685, allocations: 322.8 kB / 328.7 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.183e-05/0.007707, allocations: 7.984 kB / 328.7 MB, free: 11.57 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.483e-05/0.007722, allocations: 4 kB / 328.7 MB, free: 11.57 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.993e-05/0.007771, allocations: 28.84 kB / 328.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.007773, allocations: 0 / 328.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.254e-05/0.007836, allocations: 53.64 kB / 328.8 MB, free: 11.48 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.007848, allocations: 4 kB / 328.8 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.007852, allocations: 0 / 328.8 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.059e-05/0.007862, allocations: 0 / 328.8 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.837e-05/0.007911, allocations: 7.984 kB / 328.8 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.459e-06/0.007915, allocations: 0 / 328.8 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.633e-05/0.007931, allocations: 4 kB / 328.8 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.71e-06/0.007937, allocations: 4.031 kB / 328.8 MB, free: 11.46 MB / 298.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.69e-05/0.007994, allocations: 117.8 kB / 328.9 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.458e-05/0.008029, allocations: 45.59 kB / 329 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.457e-05/0.008053, allocations: 11.81 kB / 329 MB, free: 11.28 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.008055, allocations: 0 / 329 MB, free: 11.28 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.008058, allocations: 0 / 329 MB, free: 11.28 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-06/0.008061, allocations: 0 / 329 MB, free: 11.28 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001078/0.008169, allocations: 140.7 kB / 329.1 MB, free: 11.1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.00817, allocations: 4 kB / 329.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.852e-05/0.008189, allocations: 4 kB / 329.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.008191, allocations: 8.016 kB / 329.1 MB, free: 11.08 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.264e-06/0.008198, allocations: 4 kB / 329.1 MB, free: 11.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.008199, allocations: 0 / 329.1 MB, free: 11.08 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.0082, allocations: 3.938 kB / 329.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.517e-05/0.008296, allocations: 164.2 kB / 329.3 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.661e-05/0.008322, allocations: 11.94 kB / 329.3 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.2e-05/0.008334, allocations: 4 kB / 329.3 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.317e-05/0.008367, allocations: 4 kB / 329.3 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.442e-05/0.008392, allocations: 3.984 kB / 329.3 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.736e-06/0.008394, allocations: 8.031 kB / 329.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.707e-05/0.008442, allocations: 107.2 kB / 329.4 MB, free: 10.76 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008442, allocations: 0 / 329.4 MB, free: 10.76 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001467/0.008588, allocations: 15.92 kB / 329.5 MB, free: 10.74 MB / 298.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.0003343/0.008923, allocations: 0.6898 MB / 330.1 MB, free: 10.02 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.142e-05/0.009004, allocations: 15.98 kB / 330.2 MB, free: 10.01 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.009007, allocations: 4.094 kB / 330.2 MB, free: 10 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.967e-05/0.009026, allocations: 11.98 kB / 330.2 MB, free: 9.992 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002564/0.009283, allocations: 23.83 kB / 330.2 MB, free: 9.973 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008207/0.0101, allocations: 1.306 MB / 331.5 MB, free: 8.578 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.545e-05/0.01016, allocations: 79.02 kB / 331.6 MB, free: 8.48 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.743e-05/0.01019, allocations: 12.17 kB / 331.6 MB, free: 8.469 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.872e-05/0.01022, allocations: 20.5 kB / 331.6 MB, free: 8.449 MB / 298.7 MB Notification: Performance of SimCode: time 4e-07/0.01023, allocations: 0 / 331.6 MB, free: 8.449 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01389/0.02411, allocations: 2.317 MB / 333.9 MB, free: 6.258 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.605/6.63, allocations: 7.25 kB / 333.9 MB, free: 6.254 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79319e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.230797559954226]