Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001439/0.001439, allocations: 112.5 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001381/0.001381, allocations: 212.3 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 230.5 MB / 257.4 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00183/0.00183, allocations: 68.12 kB / 377.8 MB, free: 3.035 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2374/0.2393, allocations: 53.41 MB / 431.2 MB, free: 6.824 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.00347/0.2427, allocations: 1.929 MB / 433.1 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002063/0.2448, allocations: 1.235 MB / 434.3 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001273/0.2449, allocations: 11.88 kB / 434.4 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000589/0.2455, allocations: 147.5 kB / 434.5 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003888/0.2459, allocations: 167.4 kB / 434.7 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004412/0.2463, allocations: 171.1 kB / 434.8 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002614/0.2466, allocations: 191.5 kB / 435 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.808e-05/0.2467, allocations: 21.73 kB / 435 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001262/0.2468, allocations: 79.69 kB / 435.1 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001172/0.2469, allocations: 83.55 kB / 435.2 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.215e-05/0.247, allocations: 12 kB / 435.2 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000136/0.2471, allocations: 55.97 kB / 435.3 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.658e-05/0.2472, allocations: 51.77 kB / 435.3 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.934e-05/0.2473, allocations: 67.55 kB / 435.4 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003256/0.2476, allocations: 215.5 kB / 435.6 MB, free: 2.402 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2476, allocations: 0 / 435.6 MB, free: 2.402 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2476, allocations: 0 / 435.6 MB, free: 2.402 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.2476, allocations: 0 / 435.6 MB, free: 2.402 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.0007545/0.2484, allocations: 458.7 kB / 436 MB, free: 1.918 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.2484, allocations: 8.031 kB / 436 MB, free: 1.91 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.252e-05/0.2484, allocations: 38.75 kB / 436.1 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.536e-05/0.2485, allocations: 28.8 kB / 436.1 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000361/0.2489, allocations: 217.1 kB / 436.3 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.889e-05/0.2489, allocations: 8.375 kB / 436.3 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.705e-05/0.2489, allocations: 4.375 kB / 436.3 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003279/0.2492, allocations: 146.9 kB / 436.5 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.2492, allocations: 3.938 kB / 436.5 MB, free: 1.414 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.2492, allocations: 4 kB / 436.5 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.2492, allocations: 0 / 436.5 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.981e-05/0.2493, allocations: 35.97 kB / 436.5 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004917/0.2498, allocations: 341.4 kB / 436.9 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002208/0.2501, allocations: 103.9 kB / 437 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.64e-05/0.2502, allocations: 46.56 kB / 437 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.446e-05/0.2502, allocations: 0 / 437 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001646/0.2503, allocations: 71.33 kB / 437.1 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.162e-06/0.2503, allocations: 0 / 437.1 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003729/0.2507, allocations: 145.6 kB / 437.2 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.883e-05/0.2508, allocations: 132.6 kB / 437.3 MB, free: 428 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000301/0.2511, allocations: 277.1 kB / 437.6 MB, free: 144 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.894e-05/0.2511, allocations: 25.7 kB / 437.6 MB, free: 112 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.2512, allocations: 116.3 kB / 437.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.287e-05/0.2513, allocations: 15.91 kB / 437.8 MB, free: 15.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.25e-05/0.2513, allocations: 33.66 kB / 437.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.2515, allocations: 334.8 kB / 438.1 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.416e-05/0.2515, allocations: 27.92 kB / 438.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.458e-05/0.2516, allocations: 65.94 kB / 438.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001427/0.2518, allocations: 80.25 kB / 438.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2518, allocations: 0 / 438.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000204/0.252, allocations: 125.7 kB / 438.4 MB, free: 15.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.252, allocations: 4 kB / 438.4 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.252, allocations: 4 kB / 438.4 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.252, allocations: 3.938 kB / 438.4 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.535e-05/0.2521, allocations: 20.11 kB / 438.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-06/0.2521, allocations: 0 / 438.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.394e-05/0.2522, allocations: 7.938 kB / 438.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.2522, allocations: 8 kB / 438.5 MB, free: 15.21 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,sample1.u,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.0001301/0.2523, allocations: 150.4 kB / 438.6 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.61e-05/0.2524, allocations: 65.55 kB / 438.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002208/0.2526, allocations: 107.3 kB / 438.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.2526, allocations: 4.062 kB / 438.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.2526, allocations: 4 kB / 438.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.2526, allocations: 0 / 438.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001972/0.2528, allocations: 200.6 kB / 439 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.2528, allocations: 4 kB / 439 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.714e-05/0.2529, allocations: 7.984 kB / 439 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.2529, allocations: 0 / 439 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.2529, allocations: 0 / 439 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2529, allocations: 4 kB / 439 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.2529, allocations: 0 / 439 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002365/0.2531, allocations: 162.5 kB / 439.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.758e-05/0.2532, allocations: 35.77 kB / 439.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.956e-05/0.2532, allocations: 8 kB / 439.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.383e-05/0.2533, allocations: 4.062 kB / 439.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.21e-05/0.2533, allocations: 7.984 kB / 439.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.614e-05/0.2533, allocations: 8 kB / 439.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001975/0.2535, allocations: 204.5 kB / 439.4 MB, free: 14.17 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2535, allocations: 4 kB / 439.4 MB, free: 14.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002377/0.2538, allocations: 27.94 kB / 439.5 MB, free: 14.14 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,sample1.u,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.001947/0.2557, allocations: 0.9983 MB / 440.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002039/0.2559, allocations: 63.91 kB / 440.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2559, allocations: 4 kB / 440.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.778e-05/0.256, allocations: 23.92 kB / 440.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003931/0.2564, allocations: 68.61 kB / 440.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002289/0.2587, allocations: 1.961 MB / 442.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000469/0.2591, allocations: 0.732 MB / 443.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.308e-05/0.2592, allocations: 25.47 kB / 443.3 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.115e-05/0.2593, allocations: 47.42 kB / 443.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2593, allocations: 0 / 443.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03347/0.2928, allocations: 4.852 MB / 448.2 MB, free: 5.387 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/11.04, allocations: 13.73 kB / 448.2 MB, free: 5.379 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79247e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.446606951998547]