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.001653/0.001653, allocations: 115.8 kB / 20.43 MB, free: 1.457 MB / 14.72 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.001684/0.001684, allocations: 214.1 kB / 23.75 MB, free: 4.668 MB / 14.72 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 1.586/1.586, allocations: 230.6 MB / 257.5 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002484/0.002484, allocations: 47.92 kB / 377.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3016/0.3041, allocations: 53.36 MB / 431.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.004597/0.3087, allocations: 1.927 MB / 433.1 MB, free: 4.918 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002617/0.3113, allocations: 1.309 MB / 434.4 MB, free: 3.602 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002424/0.3115, allocations: 7.938 kB / 434.4 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00044/0.312, allocations: 67.67 kB / 434.4 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000512/0.3125, allocations: 139.4 kB / 434.6 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008967/0.3134, allocations: 230.9 kB / 434.8 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003732/0.3137, allocations: 183.5 kB / 435 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001458/0.3139, allocations: 21.73 kB / 435 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001998/0.3141, allocations: 83.64 kB / 435.1 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001955/0.3143, allocations: 87.59 kB / 435.2 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.29e-05/0.3143, allocations: 12 kB / 435.2 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002245/0.3145, allocations: 71.94 kB / 435.3 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001293/0.3147, allocations: 51.78 kB / 435.3 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001145/0.3148, allocations: 75.48 kB / 435.4 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005955/0.3154, allocations: 243.4 kB / 435.6 MB, free: 2.355 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.049e-05/0.3154, allocations: 4 kB / 435.6 MB, free: 2.352 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3154, allocations: 3.938 kB / 435.6 MB, free: 2.348 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.3154, allocations: 3.938 kB / 435.6 MB, free: 2.344 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001211/0.3166, allocations: 478.5 kB / 436.1 MB, free: 1.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.967e-05/0.3167, allocations: 12.03 kB / 436.1 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.168e-05/0.3167, allocations: 34.75 kB / 436.1 MB, free: 1.785 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.155e-05/0.3168, allocations: 24.8 kB / 436.2 MB, free: 1.762 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006/0.3174, allocations: 229.5 kB / 436.4 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.812e-05/0.3174, allocations: 8.375 kB / 436.4 MB, free: 1.504 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.772e-05/0.3175, allocations: 15.92 kB / 436.4 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004332/0.3179, allocations: 151.5 kB / 436.6 MB, free: 1.312 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.3179, allocations: 0 / 436.6 MB, free: 1.312 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.833e-05/0.3179, allocations: 3.984 kB / 436.6 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.964e-06/0.3179, allocations: 4 kB / 436.6 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000134/0.3181, allocations: 35.98 kB / 436.6 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006988/0.3188, allocations: 365.3 kB / 437 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002669/0.319, allocations: 111.9 kB / 437.1 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.443e-05/0.3191, allocations: 46.55 kB / 437.1 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.089e-05/0.3192, allocations: 4 kB / 437.1 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001895/0.3194, allocations: 79.33 kB / 437.2 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.492e-06/0.3194, allocations: 0 / 437.2 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004336/0.3198, allocations: 153.4 kB / 437.3 MB, free: 432 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/0.3199, allocations: 162.2 kB / 437.5 MB, free: 232 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004605/0.3204, allocations: 338 kB / 437.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.758e-05/0.3204, allocations: 33.95 kB / 437.9 MB, free: 15.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.3205, allocations: 128.1 kB / 438 MB, free: 15.72 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.254e-05/0.3205, allocations: 19.89 kB / 438 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.2e-05/0.3206, allocations: 29.72 kB / 438 MB, free: 15.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.3208, allocations: 330.8 kB / 438.4 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.391e-05/0.3208, allocations: 24.23 kB / 438.4 MB, free: 15.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001345/0.321, allocations: 98.78 kB / 438.5 MB, free: 15.19 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001654/0.3211, allocations: 84.22 kB / 438.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.3211, allocations: 0 / 438.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002628/0.3214, allocations: 129.4 kB / 438.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.3214, allocations: 4 kB / 438.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.229e-06/0.3214, allocations: 0 / 438.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.3215, allocations: 4 kB / 438.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.3216, allocations: 23.98 kB / 438.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-06/0.3216, allocations: 3.938 kB / 438.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.152e-05/0.3217, allocations: 11.88 kB / 438.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.118e-05/0.3217, allocations: 4 kB / 438.7 MB, free: 14.91 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001613/0.3218, allocations: 161.9 kB / 438.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.3219, allocations: 77.47 kB / 439 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002687/0.3222, allocations: 115.3 kB / 439.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.3222, allocations: 4 kB / 439.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.85e-05/0.3222, allocations: 0 / 439.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.3222, allocations: 3.938 kB / 439.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002337/0.3225, allocations: 212.5 kB / 439.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.3225, allocations: 4 kB / 439.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.595e-05/0.3225, allocations: 20 kB / 439.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.3225, allocations: 128 / 439.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.664e-05/0.3226, allocations: 11.98 kB / 439.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.3226, allocations: 0 / 439.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3226, allocations: 0 / 439.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002841/0.3228, allocations: 166.5 kB / 439.5 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.479e-05/0.3229, allocations: 39.84 kB / 439.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.314e-05/0.323, allocations: 4 kB / 439.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.627e-05/0.323, allocations: 7.984 kB / 439.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.223e-05/0.3231, allocations: 11.94 kB / 439.6 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.782e-05/0.3231, allocations: 7.984 kB / 439.6 MB, free: 13.99 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002919/0.3234, allocations: 241.2 kB / 439.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3234, allocations: 0 / 439.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002803/0.3237, allocations: 39.92 kB / 439.8 MB, free: 13.71 MB / 350.1 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 (9): * Single equations (assignments): 7 * 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.002242/0.3259, allocations: 1.014 MB / 440.9 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002895/0.3262, allocations: 88.02 kB / 440.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3262, allocations: 0 / 440.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.639e-05/0.3263, allocations: 23.98 kB / 441 MB, free: 12.72 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004714/0.3268, allocations: 70.36 kB / 441 MB, free: 12.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003024/0.3298, allocations: 2.23 MB / 443.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000428/0.3302, allocations: 0.7476 MB / 444 MB, free: 9.527 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001004/0.3303, allocations: 25.47 kB / 444 MB, free: 9.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.3304, allocations: 67.33 kB / 444.1 MB, free: 9.434 MB / 350.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3304, allocations: 0 / 444.1 MB, free: 9.434 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03969/0.3701, allocations: 5.543 MB / 449.6 MB, free: 3.973 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.49, allocations: 14.34 kB / 449.7 MB, free: 3.965 MB / 350.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/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: 14.241535208187997]