Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample.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.SuperSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SuperSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SuperSample",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.001417/0.001417, allocations: 102.7 kB / 16.92 MB, free: 6.145 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.001805/0.001805, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.561/1.561, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00151/0.001511, allocations: 44.2 kB / 300.7 MB, free: 5.723 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1531/0.1546, allocations: 49.45 MB / 350.2 MB, free: 4.262 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample): time 0.004081/0.1587, allocations: 1.872 MB / 352 MB, free: 2.367 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002126/0.1609, allocations: 1.068 MB / 353.1 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001495/0.1611, allocations: 4 kB / 353.1 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007028/0.1618, allocations: 151.5 kB / 353.3 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002864/0.1621, allocations: 111.6 kB / 353.4 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005981/0.1627, allocations: 214.1 kB / 353.6 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002639/0.163, allocations: 175.6 kB / 353.8 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001486/0.1631, allocations: 33.53 kB / 353.8 MB, free: 0.625 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001309/0.1633, allocations: 79.56 kB / 353.9 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001199/0.1634, allocations: 71.69 kB / 353.9 MB, free: 488 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.756e-05/0.1634, allocations: 8 kB / 353.9 MB, free: 480 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001304/0.1636, allocations: 47.98 kB / 354 MB, free: 432 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.57e-05/0.1636, allocations: 47.83 kB / 354 MB, free: 384 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.1637, allocations: 75.48 kB / 354.1 MB, free: 308 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003058/0.1641, allocations: 199.7 kB / 354.3 MB, free: 108 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1641, allocations: 0 / 354.3 MB, free: 108 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1641, allocations: 0 / 354.3 MB, free: 108 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.1641, allocations: 0 / 354.3 MB, free: 108 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009202/0.165, allocations: 0.5 MB / 354.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.1651, allocations: 8.031 kB / 354.8 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.475e-05/0.1651, allocations: 46.73 kB / 354.9 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.737e-05/0.1652, allocations: 16.75 kB / 354.9 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003685/0.1656, allocations: 266.8 kB / 355.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.637e-05/0.1656, allocations: 16.31 kB / 355.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.023e-05/0.1656, allocations: 7.938 kB / 355.2 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003651/0.166, allocations: 142.7 kB / 355.3 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.166, allocations: 4 kB / 355.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/0.1661, allocations: 4 kB / 355.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.1661, allocations: 0 / 355.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001058/0.1662, allocations: 35.92 kB / 355.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006052/0.1668, allocations: 358.3 kB / 355.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002701/0.1671, allocations: 115.8 kB / 355.8 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.786e-05/0.1672, allocations: 42.56 kB / 355.8 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.963e-05/0.1672, allocations: 4 kB / 355.9 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001829/0.1674, allocations: 75.44 kB / 355.9 MB, free: 14.26 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.513e-06/0.1674, allocations: 0 / 355.9 MB, free: 14.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003983/0.1678, allocations: 145.3 kB / 356.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000121/0.1679, allocations: 132.8 kB / 356.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003185/0.1683, allocations: 272.8 kB / 356.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.17e-05/0.1683, allocations: 25.7 kB / 356.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.1684, allocations: 116.1 kB / 356.6 MB, free: 13.53 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.221e-05/0.1685, allocations: 19.75 kB / 356.6 MB, free: 13.51 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.585e-05/0.1685, allocations: 25.7 kB / 356.6 MB, free: 13.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.1687, allocations: 330.8 kB / 357 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.885e-05/0.1687, allocations: 19.98 kB / 357 MB, free: 13.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.823e-05/0.1688, allocations: 77.94 kB / 357.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001281/0.169, allocations: 80.25 kB / 357.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.169, allocations: 256 / 357.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002159/0.1692, allocations: 117.4 kB / 357.3 MB, free: 12.81 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.1692, allocations: 4 kB / 357.3 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.1692, allocations: 0 / 357.3 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.1693, allocations: 4 kB / 357.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.809e-05/0.1693, allocations: 19.86 kB / 357.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.437e-06/0.1694, allocations: 4 kB / 357.3 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.354e-05/0.1694, allocations: 15.97 kB / 357.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.728e-06/0.1694, allocations: 4 kB / 357.3 MB, free: 12.76 MB / 302.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,table.y,superSample1.y,superSample1.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.0001426/0.1696, allocations: 141.8 kB / 357.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002322/0.1698, allocations: 65.44 kB / 357.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.983e-05/0.1699, allocations: 21.7 kB / 357.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.1699, allocations: 4 kB / 357.5 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.1699, allocations: 0 / 357.5 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.1699, allocations: 3.938 kB / 357.5 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002214/0.1702, allocations: 229.6 kB / 357.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1702, allocations: 0 / 357.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.84e-05/0.1702, allocations: 7.938 kB / 357.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.1702, allocations: 0 / 357.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.953e-05/0.1702, allocations: 11.98 kB / 357.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1702, allocations: 0 / 357.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.1703, allocations: 0 / 357.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000302/0.1706, allocations: 166.3 kB / 357.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001331/0.1707, allocations: 108.9 kB / 358.1 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.497e-05/0.1707, allocations: 0 / 358.1 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.789e-05/0.1708, allocations: 4 kB / 358.1 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.856e-05/0.1709, allocations: 15.92 kB / 358.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.698e-05/0.1709, allocations: 4.062 kB / 358.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000202/0.1711, allocations: 188.5 kB / 358.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1711, allocations: 4 kB / 358.3 MB, free: 11.69 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002845/0.1714, allocations: 31.98 kB / 358.3 MB, free: 11.66 MB / 302.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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,superSample1.y,sample1.y,superSample1.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 (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.00188/0.1733, allocations: 1.001 MB / 359.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002688/0.1736, allocations: 83.84 kB / 359.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.1736, allocations: 0 / 359.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.205e-05/0.1737, allocations: 20 kB / 359.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004984/0.1742, allocations: 76.47 kB / 359.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00268/0.1769, allocations: 1.922 MB / 361.4 MB, free: 8.562 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004002/0.1773, allocations: 0.7241 MB / 362.1 MB, free: 7.812 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.078e-05/0.1774, allocations: 17.55 kB / 362.1 MB, free: 7.797 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.873e-05/0.1775, allocations: 47.42 kB / 362.2 MB, free: 7.75 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1775, allocations: 0 / 362.2 MB, free: 7.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02625/0.2038, allocations: 4.459 MB / 366.6 MB, free: 3.422 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.787/8.991, allocations: 11.75 kB / 366.7 MB, free: 3.414 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SuperSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SuperSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SuperSample/SuperSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches