Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 112.2 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001397/0.001397, allocations: 180.4 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 47.92 kB / 370.4 MB, free: 9.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2457/0.2473, allocations: 52.19 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003347/0.2506, allocations: 1.915 MB / 424.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001844/0.2524, allocations: 1.079 MB / 425.6 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001075/0.2526, allocations: 7.938 kB / 425.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006152/0.2532, allocations: 151.5 kB / 425.8 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002923/0.2535, allocations: 119.5 kB / 425.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006702/0.2541, allocations: 206.5 kB / 426.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002603/0.2544, allocations: 183.5 kB / 426.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.2545, allocations: 17.69 kB / 426.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001214/0.2546, allocations: 79.62 kB / 426.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001262/0.2547, allocations: 79.67 kB / 426.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.325e-05/0.2548, allocations: 12 kB / 426.5 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001498/0.2549, allocations: 67.89 kB / 426.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.618e-05/0.255, allocations: 39.84 kB / 426.6 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.337e-05/0.2551, allocations: 67.55 kB / 426.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000307/0.2554, allocations: 211.5 kB / 426.8 MB, free: 10.37 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2554, allocations: 0 / 426.8 MB, free: 10.37 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2554, allocations: 4 kB / 426.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.2554, allocations: 0 / 426.8 MB, free: 10.36 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.0007636/0.2561, allocations: 438.8 kB / 427.3 MB, free: 9.898 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.2562, allocations: 16.02 kB / 427.3 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.844e-05/0.2562, allocations: 38.75 kB / 427.3 MB, free: 9.836 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.945e-05/0.2563, allocations: 20.8 kB / 427.3 MB, free: 9.816 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003408/0.2566, allocations: 217 kB / 427.6 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.564e-05/0.2567, allocations: 4.375 kB / 427.6 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.803e-05/0.2567, allocations: 7.938 kB / 427.6 MB, free: 9.566 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003247/0.257, allocations: 146.7 kB / 427.7 MB, free: 9.398 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.257, allocations: 0 / 427.7 MB, free: 9.398 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.379e-05/0.257, allocations: 4 kB / 427.7 MB, free: 9.395 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.257, allocations: 0 / 427.7 MB, free: 9.395 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.954e-05/0.2571, allocations: 35.92 kB / 427.8 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004935/0.2576, allocations: 325.5 kB / 428.1 MB, free: 8.992 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002355/0.2579, allocations: 107.9 kB / 428.2 MB, free: 8.859 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.535e-05/0.2579, allocations: 46.56 kB / 428.2 MB, free: 8.805 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.454e-05/0.258, allocations: 7.922 kB / 428.2 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001536/0.2581, allocations: 75.34 kB / 428.3 MB, free: 8.711 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.392e-06/0.2581, allocations: 0 / 428.3 MB, free: 8.711 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.000349/0.2585, allocations: 141.5 kB / 428.4 MB, free: 8.566 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.801e-05/0.2586, allocations: 132.5 kB / 428.6 MB, free: 8.406 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002845/0.2588, allocations: 268.9 kB / 428.8 MB, free: 8.137 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.2589, allocations: 25.7 kB / 428.9 MB, free: 8.105 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.615e-05/0.2589, allocations: 120.1 kB / 429 MB, free: 7.984 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.63e-05/0.259, allocations: 19.83 kB / 429 MB, free: 7.965 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.289e-05/0.259, allocations: 33.97 kB / 429 MB, free: 7.926 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.2592, allocations: 330.8 kB / 429.4 MB, free: 7.594 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.81e-05/0.2592, allocations: 16 kB / 429.4 MB, free: 7.578 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.626e-05/0.2593, allocations: 73.92 kB / 429.4 MB, free: 7.484 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001385/0.2595, allocations: 80.52 kB / 429.5 MB, free: 7.391 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.2595, allocations: 0 / 429.5 MB, free: 7.391 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002064/0.2597, allocations: 117.5 kB / 429.6 MB, free: 7.27 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.2597, allocations: 4 kB / 429.6 MB, free: 7.266 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.2597, allocations: 4.062 kB / 429.6 MB, free: 7.262 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.2597, allocations: 8 kB / 429.6 MB, free: 7.254 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.859e-05/0.2598, allocations: 15.92 kB / 429.7 MB, free: 7.238 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.2598, allocations: 4 kB / 429.7 MB, free: 7.234 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.902e-05/0.2599, allocations: 11.89 kB / 429.7 MB, free: 7.223 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.987e-06/0.2599, allocations: 4 kB / 429.7 MB, free: 7.219 MB / 334.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.0001237/0.26, allocations: 137.8 kB / 429.8 MB, free: 7.074 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.389e-05/0.2601, allocations: 65.53 kB / 429.9 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002215/0.2603, allocations: 111.4 kB / 430 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.563e-06/0.2603, allocations: 7.984 kB / 430 MB, free: 6.879 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.2603, allocations: 0 / 430 MB, free: 6.879 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.2603, allocations: 3.938 kB / 430 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001947/0.2605, allocations: 200.7 kB / 430.2 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.2605, allocations: 0 / 430.2 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.695e-05/0.2606, allocations: 7.938 kB / 430.2 MB, free: 6.629 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.2606, allocations: 3.984 kB / 430.2 MB, free: 6.625 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.2606, allocations: 4 kB / 430.2 MB, free: 6.621 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.2606, allocations: 128 / 430.2 MB, free: 6.621 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.2606, allocations: 8 kB / 430.2 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002735/0.2609, allocations: 154.6 kB / 430.4 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.968e-05/0.2609, allocations: 31.84 kB / 430.4 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.998e-05/0.261, allocations: 7.984 kB / 430.4 MB, free: 6.398 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.82e-05/0.261, allocations: 4 kB / 430.4 MB, free: 6.395 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.615e-05/0.2611, allocations: 15.92 kB / 430.4 MB, free: 6.379 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/0.2611, allocations: 4 kB / 430.4 MB, free: 6.375 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001907/0.2613, allocations: 196.5 kB / 430.6 MB, free: 6.184 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2613, allocations: 0 / 430.6 MB, free: 6.184 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002393/0.2615, allocations: 27.94 kB / 430.7 MB, free: 6.156 MB / 334.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.001935/0.2634, allocations: 0.9995 MB / 431.7 MB, free: 5.285 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00024/0.2637, allocations: 67.84 kB / 431.7 MB, free: 5.219 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.2637, allocations: 0 / 431.7 MB, free: 5.219 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.058e-05/0.2637, allocations: 20 kB / 431.7 MB, free: 5.199 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000422/0.2642, allocations: 70.55 kB / 431.8 MB, free: 5.133 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002333/0.2665, allocations: 1.928 MB / 433.7 MB, free: 3.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003729/0.2669, allocations: 0.732 MB / 434.5 MB, free: 2.332 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.695e-05/0.2669, allocations: 25.47 kB / 434.5 MB, free: 2.309 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.179e-05/0.267, allocations: 47.41 kB / 434.5 MB, free: 2.262 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.267, allocations: 0 / 434.5 MB, free: 2.262 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03415/0.3012, allocations: 4.772 MB / 439.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.69/10.99, allocations: 6.859 kB / 439.3 MB, free: 13.56 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79247e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.403668615035713]