Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001378/0.001378, allocations: 106.9 kB / 16.92 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001713/0.001712, allocations: 191.4 kB / 17.85 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.573/1.573, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 42.97 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.149/0.1503, allocations: 49.44 MB / 350.2 MB, free: 4.316 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold): time 0.006058/0.1564, allocations: 1.895 MB / 352.1 MB, free: 2.398 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002364/0.1588, allocations: 1.071 MB / 353.1 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002039/0.1591, allocations: 7.938 kB / 353.1 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007835/0.1599, allocations: 150.9 kB / 353.3 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004727/0.1604, allocations: 119.5 kB / 353.4 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007955/0.1612, allocations: 194.5 kB / 353.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004113/0.1616, allocations: 187.5 kB / 353.8 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001826/0.1618, allocations: 33.53 kB / 353.8 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001893/0.162, allocations: 87.56 kB / 353.9 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001754/0.1622, allocations: 67.7 kB / 354 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.823e-05/0.1622, allocations: 12 kB / 354 MB, free: 496 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002337/0.1625, allocations: 59.95 kB / 354 MB, free: 436 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.519e-05/0.1626, allocations: 43.84 kB / 354.1 MB, free: 392 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001094/0.1627, allocations: 79.41 kB / 354.1 MB, free: 312 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004296/0.1631, allocations: 199.6 kB / 354.3 MB, free: 112 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.1631, allocations: 0 / 354.3 MB, free: 112 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1631, allocations: 0 / 354.3 MB, free: 112 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.472e-05/0.1632, allocations: 0 / 354.3 MB, free: 112 kB / 286.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.001295/0.1645, allocations: 0.5157 MB / 354.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.319e-05/0.1645, allocations: 8.031 kB / 354.9 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.016e-05/0.1646, allocations: 38.75 kB / 354.9 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.919e-05/0.1647, allocations: 20.66 kB / 354.9 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004227/0.1651, allocations: 270.7 kB / 355.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.324e-05/0.1652, allocations: 8.375 kB / 355.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.99e-05/0.1652, allocations: 7.938 kB / 355.2 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004559/0.1656, allocations: 163.6 kB / 355.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.1657, allocations: 3.938 kB / 355.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.303e-05/0.1657, allocations: 8 kB / 355.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.1657, allocations: 0 / 355.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001444/0.1659, allocations: 31.98 kB / 355.4 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007509/0.1666, allocations: 454.4 kB / 355.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003031/0.1669, allocations: 142.5 kB / 356 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.1671, allocations: 51.42 kB / 356 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.776e-05/0.1671, allocations: 4 kB / 356 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000262/0.1674, allocations: 113 kB / 356.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 2.224e-06/0.1674, allocations: 0 / 356.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004234/0.1678, allocations: 153.4 kB / 356.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/0.1679, allocations: 170.5 kB / 356.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000297/0.1682, allocations: 264.9 kB / 356.7 MB, free: 13.42 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.617e-05/0.1683, allocations: 29.7 kB / 356.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.1684, allocations: 120.3 kB / 356.9 MB, free: 13.26 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.351e-05/0.1684, allocations: 19.8 kB / 356.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.593e-05/0.1685, allocations: 29.72 kB / 356.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.1687, allocations: 330.8 kB / 357.2 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.136e-05/0.1688, allocations: 24 kB / 357.3 MB, free: 12.85 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000111/0.1689, allocations: 74.84 kB / 357.3 MB, free: 12.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001972/0.1691, allocations: 101 kB / 357.4 MB, free: 12.63 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1691, allocations: 0 / 357.4 MB, free: 12.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002567/0.1694, allocations: 125.4 kB / 357.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/0.1694, allocations: 6.812 kB / 357.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.898e-06/0.1694, allocations: 4 kB / 357.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.343e-05/0.1694, allocations: 8.141 kB / 357.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.1696, allocations: 15.98 kB / 357.6 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/0.1696, allocations: 0 / 357.6 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.752e-05/0.1697, allocations: 19.78 kB / 357.6 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.267e-05/0.1697, allocations: 8 kB / 357.6 MB, free: 12.45 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,hold1.y,hold1.u,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.0001582/0.1699, allocations: 146.3 kB / 357.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000114/0.17, allocations: 69.44 kB / 357.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.925e-05/0.1701, allocations: 25.77 kB / 357.9 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.1701, allocations: 4 kB / 357.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.1701, allocations: 320 / 357.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.1701, allocations: 7.938 kB / 357.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002496/0.1704, allocations: 229.5 kB / 358.1 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.1704, allocations: 3.984 kB / 358.1 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.993e-05/0.1704, allocations: 8 kB / 358.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.1704, allocations: 0 / 358.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.1704, allocations: 4 kB / 358.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.1705, allocations: 0 / 358.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.1705, allocations: 0 / 358.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002987/0.1708, allocations: 179.3 kB / 358.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001202/0.1709, allocations: 112.8 kB / 358.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.89e-05/0.1709, allocations: 11.98 kB / 358.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.008e-05/0.171, allocations: 0 / 358.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.004e-05/0.1711, allocations: 19.92 kB / 358.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.77e-05/0.1711, allocations: 4 kB / 358.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002293/0.1713, allocations: 196.5 kB / 358.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1713, allocations: 3.938 kB / 358.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002844/0.1716, allocations: 28 kB / 358.7 MB, free: 11.3 MB / 302.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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * 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.001748/0.1734, allocations: 1.015 MB / 359.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002839/0.1737, allocations: 79.84 kB / 359.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.1737, allocations: 320 / 359.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.981e-05/0.1738, allocations: 35.98 kB / 359.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00045/0.1743, allocations: 79.61 kB / 359.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002662/0.1769, allocations: 1.988 MB / 361.9 MB, free: 8.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004388/0.1774, allocations: 0.728 MB / 362.6 MB, free: 7.336 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000114/0.1775, allocations: 29.52 kB / 362.6 MB, free: 7.309 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.622e-05/0.1776, allocations: 55.41 kB / 362.7 MB, free: 7.254 MB / 302.1 MB Notification: Performance of SimCode: time 1.202e-06/0.1776, allocations: 0 / 362.7 MB, free: 7.254 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02996/0.2076, allocations: 4.63 MB / 367.3 MB, free: 2.738 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.649/8.856, allocations: 11.36 kB / 367.3 MB, free: 2.73 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches