Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.0008126/0.0008126, 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.0007977/0.0007977, allocations: 170 kB / 23.95 MB, free: 0.6133 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.8622/0.8622, 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.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.778e-05/1.93e-05, allocations: 5.094 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.002383/0.002402, allocations: 1.876 MB / 326.4 MB, free: 14.06 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001409/0.003812, allocations: 1.227 MB / 327.7 MB, free: 12.83 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001099/0.003921, allocations: 7.938 kB / 327.7 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002796/0.004201, allocations: 67.59 kB / 327.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003113/0.004512, allocations: 135.3 kB / 327.9 MB, free: 12.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005088/0.005021, allocations: 234.7 kB / 328.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002106/0.005232, allocations: 187.4 kB / 328.3 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.663e-05/0.005328, allocations: 17.8 kB / 328.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001213/0.00545, allocations: 103.7 kB / 328.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001013/0.005551, allocations: 75.78 kB / 328.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.232e-05/0.005573, allocations: 8 kB / 328.5 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001318/0.005705, allocations: 83.81 kB / 328.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.674e-05/0.005772, allocations: 43.84 kB / 328.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.353e-05/0.005825, allocations: 47.78 kB / 328.7 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002653/0.006091, allocations: 247.2 kB / 328.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.006094, allocations: 0 / 328.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.006095, allocations: 0 / 328.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.006099, allocations: 0 / 328.9 MB, free: 11.59 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.0005349/0.006634, allocations: 470.5 kB / 329.4 MB, free: 11.1 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.00667, allocations: 8.031 kB / 329.4 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.022e-05/0.0067, allocations: 42.73 kB / 329.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.525e-05/0.006745, allocations: 28.8 kB / 329.4 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002848/0.00703, allocations: 228.7 kB / 329.7 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.007043, allocations: 4.375 kB / 329.7 MB, free: 10.76 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.431e-05/0.007058, allocations: 8.375 kB / 329.7 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002751/0.007333, allocations: 176.7 kB / 329.8 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.007342, allocations: 3.938 kB / 329.8 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.007354, allocations: 8 kB / 329.9 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.007359, allocations: 0 / 329.9 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.058e-05/0.007439, allocations: 39.97 kB / 329.9 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003888/0.007828, allocations: 341.5 kB / 330.2 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001638/0.007992, allocations: 123.9 kB / 330.3 MB, free: 9.969 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.368e-05/0.008046, allocations: 42.56 kB / 330.4 MB, free: 9.918 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.82e-05/0.008064, allocations: 0 / 330.4 MB, free: 9.918 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001341/0.008198, allocations: 91.31 kB / 330.5 MB, free: 9.816 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.473e-06/0.008199, allocations: 0 / 330.5 MB, free: 9.816 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002663/0.008466, allocations: 157.4 kB / 330.6 MB, free: 9.656 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.045e-05/0.008526, allocations: 136.5 kB / 330.8 MB, free: 9.492 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002501/0.008776, allocations: 337.9 kB / 331.1 MB, free: 9.148 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.008792, allocations: 29.7 kB / 331.1 MB, free: 9.113 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.158e-05/0.008864, allocations: 128.1 kB / 331.2 MB, free: 8.984 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.204e-05/0.008886, allocations: 23.83 kB / 331.3 MB, free: 8.961 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.713e-05/0.008923, allocations: 21.97 kB / 331.3 MB, free: 8.934 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.749e-05/0.00901, allocations: 342.8 kB / 331.6 MB, free: 8.59 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.324e-05/0.009054, allocations: 27.92 kB / 331.7 MB, free: 8.562 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.262e-05/0.009126, allocations: 114.8 kB / 331.8 MB, free: 8.426 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.093e-05/0.009207, allocations: 57.95 kB / 331.8 MB, free: 8.363 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.00921, allocations: 7.922 kB / 331.8 MB, free: 8.355 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001267/0.009337, allocations: 109.5 kB / 331.9 MB, free: 8.242 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.00935, allocations: 8 kB / 331.9 MB, free: 8.234 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.009355, allocations: 0 / 331.9 MB, free: 8.234 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.009366, allocations: 4.062 kB / 332 MB, free: 8.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.083e-05/0.009437, allocations: 12 kB / 332 MB, free: 8.219 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.009442, allocations: 0 / 332 MB, free: 8.219 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.239e-05/0.009484, allocations: 11.98 kB / 332 MB, free: 8.207 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.192e-06/0.00949, allocations: 0 / 332 MB, free: 8.207 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,table.y) * 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 0.0001018/0.009592, allocations: 154.7 kB / 332.1 MB, free: 8.047 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.185e-05/0.009654, allocations: 65.55 kB / 332.2 MB, free: 7.977 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001852/0.009839, allocations: 131.4 kB / 332.3 MB, free: 7.848 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.009843, allocations: 8.062 kB / 332.3 MB, free: 7.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.009847, allocations: 0 / 332.3 MB, free: 7.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.009851, allocations: 0 / 332.3 MB, free: 7.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001503/0.01, allocations: 208.5 kB / 332.5 MB, free: 7.594 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.01, allocations: 0 / 332.5 MB, free: 7.594 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.482e-05/0.01005, allocations: 19.98 kB / 332.5 MB, free: 7.574 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.01005, allocations: 0 / 332.5 MB, free: 7.574 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.654e-06/0.01006, allocations: 0 / 332.5 MB, free: 7.574 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.01006, allocations: 4 kB / 332.6 MB, free: 7.57 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.01006, allocations: 0 / 332.6 MB, free: 7.57 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001636/0.01022, allocations: 170.5 kB / 332.7 MB, free: 7.379 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.583e-05/0.01028, allocations: 39.84 kB / 332.8 MB, free: 7.34 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.908e-05/0.0103, allocations: 7.984 kB / 332.8 MB, free: 7.332 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.555e-05/0.01033, allocations: 12.06 kB / 332.8 MB, free: 7.32 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.843e-05/0.01038, allocations: 8.078 kB / 332.8 MB, free: 7.312 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.381e-05/0.0104, allocations: 11.88 kB / 332.8 MB, free: 7.301 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001623/0.01056, allocations: 249.2 kB / 333 MB, free: 7.062 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01056, allocations: 4 kB / 333 MB, free: 7.059 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001862/0.01075, allocations: 31.94 kB / 333.1 MB, free: 7.027 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,table.y,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.001011/0.01176, allocations: 1.055 MB / 334.1 MB, free: 6.121 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001594/0.01192, allocations: 67.91 kB / 334.2 MB, free: 6.055 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.01192, allocations: 0 / 334.2 MB, free: 6.055 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.108e-05/0.01197, allocations: 31.97 kB / 334.2 MB, free: 6.023 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002752/0.01224, allocations: 74.44 kB / 334.3 MB, free: 5.953 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001695/0.01394, allocations: 2.188 MB / 336.5 MB, free: 3.656 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.545e-05/0.01402, allocations: 127.9 kB / 336.6 MB, free: 3.512 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.324e-05/0.01409, allocations: 25.62 kB / 336.6 MB, free: 3.488 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.562e-05/0.01416, allocations: 64.47 kB / 336.7 MB, free: 3.426 MB / 298.7 MB Notification: Performance of SimCode: time 4.11e-07/0.01416, allocations: 0 / 336.7 MB, free: 3.426 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02002/0.03418, allocations: 6.223 MB / 342.9 MB, free: 13.27 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.748/6.782, allocations: 10.73 kB / 342.9 MB, free: 13.26 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79104e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.4183916952461]