Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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.001815/0.001815, allocations: 115.8 kB / 20.43 MB, free: 1.449 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.002351/0.002351, allocations: 216.6 kB / 23.74 MB, free: 4.656 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.526/1.526, allocations: 230.6 MB / 257.5 MB, free: 8.016 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.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002078/0.002078, allocations: 47.92 kB / 377.8 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3444/0.3465, allocations: 53.36 MB / 431.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.003468/0.3499, allocations: 1.954 MB / 433.1 MB, free: 4.902 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002203/0.3521, allocations: 1.266 MB / 434.4 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001498/0.3523, allocations: 7.938 kB / 434.4 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006371/0.3529, allocations: 151.5 kB / 434.5 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004236/0.3533, allocations: 163 kB / 434.7 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005165/0.3539, allocations: 183.4 kB / 434.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003022/0.3542, allocations: 203.4 kB / 435 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001188/0.3543, allocations: 25.8 kB / 435.1 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001338/0.3544, allocations: 83.62 kB / 435.2 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001376/0.3546, allocations: 79.62 kB / 435.2 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.781e-05/0.3546, allocations: 8 kB / 435.2 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001754/0.3548, allocations: 63.95 kB / 435.3 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.634e-05/0.3548, allocations: 47.78 kB / 435.3 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001025/0.3549, allocations: 87.41 kB / 435.4 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004203/0.3554, allocations: 219.5 kB / 435.6 MB, free: 2.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.193e-06/0.3554, allocations: 3.984 kB / 435.7 MB, free: 2.336 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3554, allocations: 3.938 kB / 435.7 MB, free: 2.332 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.3554, allocations: 0 / 435.7 MB, free: 2.332 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008724/0.3562, allocations: 466.6 kB / 436.1 MB, free: 1.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.3563, allocations: 8.031 kB / 436.1 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.088e-05/0.3563, allocations: 38.75 kB / 436.2 MB, free: 1.785 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.597e-05/0.3564, allocations: 20.8 kB / 436.2 MB, free: 1.766 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00037/0.3568, allocations: 225.1 kB / 436.4 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.931e-05/0.3568, allocations: 12.31 kB / 436.4 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.864e-05/0.3568, allocations: 11.94 kB / 436.4 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003861/0.3572, allocations: 167.5 kB / 436.6 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.3572, allocations: 0 / 436.6 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.405e-05/0.3572, allocations: 4 kB / 436.6 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.3572, allocations: 0 / 436.6 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001158/0.3573, allocations: 43.91 kB / 436.6 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005275/0.3579, allocations: 342.4 kB / 437 MB, free: 0.875 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002626/0.3581, allocations: 138.5 kB / 437.1 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.413e-05/0.3582, allocations: 47.42 kB / 437.1 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.921e-05/0.3583, allocations: 8 kB / 437.2 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001753/0.3584, allocations: 75.33 kB / 437.2 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.372e-06/0.3584, allocations: 0 / 437.2 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003612/0.3588, allocations: 165.4 kB / 437.4 MB, free: 392 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.3589, allocations: 158.2 kB / 437.5 MB, free: 196 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003278/0.3592, allocations: 282.2 kB / 437.8 MB, free: 15.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.449e-05/0.3592, allocations: 37.69 kB / 437.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.226e-05/0.3593, allocations: 124.4 kB / 438 MB, free: 15.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.287e-05/0.3594, allocations: 15.84 kB / 438 MB, free: 15.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.3e-05/0.3594, allocations: 33.7 kB / 438 MB, free: 15.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.3596, allocations: 338.8 kB / 438.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.369e-05/0.3596, allocations: 20 kB / 438.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001124/0.3597, allocations: 87.64 kB / 438.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001554/0.3599, allocations: 94.22 kB / 438.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3599, allocations: 4 kB / 438.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002343/0.3601, allocations: 129.4 kB / 438.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.3601, allocations: 6.5 kB / 438.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-06/0.3602, allocations: 7.938 kB / 438.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.3602, allocations: 4 kB / 438.7 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.23e-05/0.3602, allocations: 8.188 kB / 438.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.3603, allocations: 11.98 kB / 438.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.146e-05/0.3603, allocations: 11.94 kB / 438.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.846e-06/0.3603, 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: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,backSample1.y,backSample1.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 (13): * Single equations (assignments): 13 * 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.0001384/0.3605, allocations: 150.6 kB / 438.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001127/0.3606, allocations: 81.42 kB / 439 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002302/0.3608, allocations: 107.5 kB / 439.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.3608, allocations: 8 kB / 439.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-06/0.3608, allocations: 0 / 439.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.3608, allocations: 3.938 kB / 439.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002204/0.3611, allocations: 212.6 kB / 439.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.626e-06/0.3611, allocations: 4 kB / 439.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.189e-05/0.3611, allocations: 7.938 kB / 439.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.3611, allocations: 0 / 439.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/0.3611, allocations: 7.984 kB / 439.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.3611, allocations: 128 / 439.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.3611, allocations: 4 kB / 439.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002765/0.3614, allocations: 187.3 kB / 439.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.569e-05/0.3615, allocations: 27.88 kB / 439.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.094e-05/0.3615, allocations: 8 kB / 439.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.004e-05/0.3616, allocations: 4 kB / 439.5 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.782e-05/0.3616, allocations: 19.92 kB / 439.6 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.062e-05/0.3616, allocations: 4 kB / 439.6 MB, free: 13.99 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002195/0.3619, allocations: 205.2 kB / 439.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3619, allocations: 0 / 439.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002774/0.3621, allocations: 31.94 kB / 439.8 MB, free: 13.76 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (11): * Single equations (assignments): 9 * 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.002101/0.3642, allocations: 1.018 MB / 440.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002546/0.3645, allocations: 75.91 kB / 440.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3645, allocations: 384 / 440.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.827e-05/0.3646, allocations: 23.94 kB / 440.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000461/0.365, allocations: 85.05 kB / 441 MB, free: 12.69 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002595/0.3676, allocations: 2.05 MB / 443 MB, free: 10.49 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003717/0.368, allocations: 0.7398 MB / 443.8 MB, free: 9.727 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.261e-05/0.3681, allocations: 29.61 kB / 443.8 MB, free: 9.699 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.366e-05/0.3682, allocations: 51.42 kB / 443.9 MB, free: 9.648 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3682, allocations: 0 / 443.9 MB, free: 9.648 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03452/0.4027, allocations: 5.184 MB / 449 MB, free: 4.559 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.71, allocations: 6.688 kB / 449 MB, free: 4.555 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79247e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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.34242975502275]