Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.001391/0.001391, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.001496/0.001496, allocations: 211.4 kB / 23.73 MB, free: 4.41 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.4/1.4, allocations: 230.6 MB / 257.5 MB, free: 7.816 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.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001518, allocations: 47.91 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2397, allocations: 53.37 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003323/0.243, allocations: 1.871 MB / 433 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00197/0.245, allocations: 1.157 MB / 434.1 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.2451, allocations: 4 kB / 434.1 MB, free: 3.602 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005775/0.2457, allocations: 147.5 kB / 434.3 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003817/0.246, allocations: 155.4 kB / 434.4 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004297/0.2465, allocations: 178.4 kB / 434.6 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002496/0.2467, allocations: 199.4 kB / 434.8 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.2468, allocations: 25.53 kB / 434.8 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000117/0.2469, allocations: 79.64 kB / 434.9 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000119/0.2471, allocations: 75.61 kB / 435 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.395e-05/0.2471, allocations: 8 kB / 435 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001347/0.2472, allocations: 59.94 kB / 435 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.753e-05/0.2473, allocations: 43.84 kB / 435.1 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.403e-05/0.2474, allocations: 59.56 kB / 435.1 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002992/0.2477, allocations: 213 kB / 435.3 MB, free: 2.387 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.2477, allocations: 4 kB / 435.3 MB, free: 2.383 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2477, allocations: 0 / 435.3 MB, free: 2.383 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.559e-06/0.2477, allocations: 0 / 435.3 MB, free: 2.383 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.0007022/0.2484, allocations: 450.7 kB / 435.8 MB, free: 1.906 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.2484, allocations: 12.03 kB / 435.8 MB, free: 1.895 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.058e-05/0.2485, allocations: 38.73 kB / 435.8 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.815e-05/0.2485, allocations: 20.8 kB / 435.8 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003273/0.2488, allocations: 209.2 kB / 436.1 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/0.2488, allocations: 4.375 kB / 436.1 MB, free: 1.594 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.42e-05/0.2489, allocations: 19.91 kB / 436.1 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003069/0.2492, allocations: 145.9 kB / 436.2 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.2492, allocations: 3.938 kB / 436.2 MB, free: 1.406 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/0.2492, allocations: 0 / 436.2 MB, free: 1.406 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.2492, allocations: 0 / 436.2 MB, free: 1.406 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001006/0.2493, allocations: 35.98 kB / 436.3 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004783/0.2498, allocations: 329.4 kB / 436.6 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000229/0.25, allocations: 107.9 kB / 436.7 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.311e-05/0.2501, allocations: 42.56 kB / 436.7 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.02e-05/0.2501, allocations: 0 / 436.7 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001619/0.2503, allocations: 79.33 kB / 436.8 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.433e-06/0.2503, allocations: 3.938 kB / 436.8 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003513/0.2506, allocations: 153.4 kB / 437 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.475e-05/0.2507, allocations: 102.8 kB / 437.1 MB, free: 452 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002995/0.251, allocations: 277 kB / 437.3 MB, free: 168 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.191e-05/0.251, allocations: 29.7 kB / 437.4 MB, free: 132 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.977e-05/0.2511, allocations: 116.1 kB / 437.5 MB, free: 12 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.884e-05/0.2511, allocations: 16.05 kB / 437.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.232e-05/0.2512, allocations: 33.67 kB / 437.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.2513, allocations: 330.8 kB / 437.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.769e-05/0.2514, allocations: 20.23 kB / 437.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001118/0.2515, allocations: 98.78 kB / 438 MB, free: 15.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001364/0.2517, allocations: 76.22 kB / 438 MB, free: 15.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2517, allocations: 4 kB / 438 MB, free: 15.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002122/0.2519, allocations: 117.4 kB / 438.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.2519, allocations: 12.16 kB / 438.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.421e-06/0.2519, allocations: 0 / 438.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.2519, allocations: 4 kB / 438.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.642e-05/0.252, allocations: 12.3 kB / 438.2 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.226e-06/0.252, allocations: 4 kB / 438.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.32e-05/0.2521, allocations: 15.83 kB / 438.2 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.258e-05/0.2521, allocations: 12 kB / 438.2 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.0001376/0.2522, allocations: 145.8 kB / 438.4 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.238e-05/0.2523, allocations: 57.59 kB / 438.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002522/0.2526, allocations: 127.3 kB / 438.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.2526, allocations: 4 kB / 438.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.2526, allocations: 0 / 438.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.2526, allocations: 3.938 kB / 438.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002057/0.2528, allocations: 188.7 kB / 438.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2528, allocations: 0 / 438.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.685e-05/0.2528, allocations: 15.92 kB / 438.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.2528, allocations: 0 / 438.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.908e-06/0.2528, allocations: 0 / 438.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/0.2528, allocations: 4 kB / 438.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2528, allocations: 4 kB / 438.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002745/0.2531, allocations: 162.6 kB / 438.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.975e-05/0.2532, allocations: 39.78 kB / 438.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.685e-05/0.2532, allocations: 0 / 438.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.18e-05/0.2533, allocations: 7.984 kB / 439 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.255e-05/0.2533, allocations: 15.88 kB / 439 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.392e-05/0.2533, allocations: 4 kB / 439 MB, free: 14.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002083/0.2536, allocations: 200.5 kB / 439.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2536, allocations: 0 / 439.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002507/0.2538, allocations: 31.98 kB / 439.2 MB, free: 14.13 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 (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.002089/0.2559, allocations: 1.045 MB / 440.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002142/0.2561, allocations: 67.91 kB / 440.3 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2561, allocations: 0 / 440.3 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.593e-05/0.2562, allocations: 35.86 kB / 440.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004014/0.2566, allocations: 67.36 kB / 440.4 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002298/0.2589, allocations: 1.971 MB / 442.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001249/0.259, allocations: 119.4 kB / 442.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.59e-05/0.2591, allocations: 33.73 kB / 442.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.372e-05/0.2592, allocations: 51.42 kB / 442.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2592, allocations: 0 / 442.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03336/0.2925, allocations: 5.416 MB / 448 MB, free: 5.426 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.69/10.98, allocations: 3.984 kB / 448 MB, free: 5.422 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79247e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.374721575994045]