Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.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: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002026/0.002026, allocations: 105 kB / 17.16 MB, free: 6.082 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.002314/0.002314, allocations: 194.9 kB / 18.08 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 2.524/2.524, allocations: 222.9 MB / 241.7 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001605, allocations: 44 kB / 300.6 MB, free: 6.293 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1374, allocations: 49.46 MB / 350.1 MB, free: 4.832 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.004557/0.142, allocations: 1.937 MB / 352 MB, free: 2.875 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002124/0.1442, allocations: 1.017 MB / 353 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001992/0.1444, allocations: 7.875 kB / 353 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007492/0.1452, allocations: 143.7 kB / 353.2 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003713/0.1456, allocations: 97.69 kB / 353.3 MB, free: 1.609 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007401/0.1464, allocations: 186.6 kB / 353.4 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003028/0.1467, allocations: 179.5 kB / 353.6 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001385/0.1468, allocations: 37.55 kB / 353.6 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001508/0.147, allocations: 67.64 kB / 353.7 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001454/0.1471, allocations: 67.69 kB / 353.8 MB, free: 1.086 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.153e-05/0.1472, allocations: 4 kB / 353.8 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001665/0.1473, allocations: 47.91 kB / 353.8 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.206e-05/0.1475, allocations: 31.84 kB / 353.9 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000104/0.1476, allocations: 63.55 kB / 353.9 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002721/0.1478, allocations: 160 kB / 354.1 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1479, allocations: 0 / 354.1 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1479, allocations: 4 kB / 354.1 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.117e-05/0.1479, allocations: 0 / 354.1 MB, free: 0.7812 MB / 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.001002/0.1489, allocations: 0.5117 MB / 354.6 MB, free: 220 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.1489, allocations: 8.031 kB / 354.6 MB, free: 212 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.784e-05/0.149, allocations: 20.75 kB / 354.6 MB, free: 192 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004101/0.1495, allocations: 254.9 kB / 354.9 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.827e-05/0.1495, allocations: 4.375 kB / 354.9 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.641e-05/0.1495, allocations: 16.06 kB / 354.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004014/0.1499, allocations: 150.7 kB / 355 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.15, allocations: 3.938 kB / 355 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.477e-05/0.15, allocations: 0 / 355 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.15, allocations: 0 / 355 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001285/0.1501, allocations: 31.98 kB / 355.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005771/0.1507, allocations: 366.3 kB / 355.4 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002642/0.151, allocations: 111.9 kB / 355.5 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.692e-05/0.1511, allocations: 42.56 kB / 355.6 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.322e-05/0.1511, allocations: 4 kB / 355.6 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001857/0.1513, allocations: 83.31 kB / 355.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.833e-06/0.1513, allocations: 0 / 355.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.000428/0.1518, allocations: 133.6 kB / 355.8 MB, free: 14.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.1519, allocations: 132.5 kB / 355.9 MB, free: 14.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003091/0.1522, allocations: 264.9 kB / 356.2 MB, free: 14.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.499e-05/0.1522, allocations: 29.7 kB / 356.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.741e-05/0.1523, allocations: 116.4 kB / 356.3 MB, free: 14.26 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.101e-05/0.1524, allocations: 23.75 kB / 356.4 MB, free: 14.24 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.992e-05/0.1524, allocations: 33.7 kB / 356.4 MB, free: 14.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.1526, allocations: 330.8 kB / 356.7 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.993e-05/0.1526, allocations: 20.05 kB / 356.7 MB, free: 13.85 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001019/0.1528, allocations: 77.88 kB / 356.8 MB, free: 13.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001522/0.1529, allocations: 76.25 kB / 356.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.1529, allocations: 0 / 356.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002446/0.1532, allocations: 117.5 kB / 357 MB, free: 13.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.1532, allocations: 8.031 kB / 357 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.1532, allocations: 0 / 357 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.1532, allocations: 4 kB / 357 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.949e-05/0.1533, allocations: 11.98 kB / 357 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.1534, allocations: 7.938 kB / 357 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.718e-05/0.1535, allocations: 15.84 kB / 357 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.086e-05/0.1535, allocations: 4 kB / 357 MB, free: 13.49 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,sample1.u,subSample1.y,subSample1.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.0001364/0.1536, allocations: 141.8 kB / 357.2 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.717e-05/0.1537, allocations: 65.5 kB / 357.2 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.915e-05/0.1538, allocations: 25.7 kB / 357.3 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.1538, allocations: 0 / 357.3 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.1538, allocations: 0 / 357.3 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.1538, allocations: 7.938 kB / 357.3 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002506/0.1541, allocations: 221.5 kB / 357.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.1541, allocations: 0 / 357.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.313e-05/0.1541, allocations: 7.938 kB / 357.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.1541, allocations: 0 / 357.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.698e-05/0.1542, allocations: 7.984 kB / 357.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.377e-06/0.1542, allocations: 8.125 kB / 357.5 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.1542, allocations: 0 / 357.5 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002805/0.1545, allocations: 158.4 kB / 357.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001025/0.1546, allocations: 104.9 kB / 357.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.791e-05/0.1546, allocations: 8 kB / 357.8 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.743e-05/0.1547, allocations: 4 kB / 357.8 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.918e-05/0.1548, allocations: 7.984 kB / 357.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.1548, allocations: 7.938 kB / 357.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002062/0.155, allocations: 196.5 kB / 358 MB, free: 12.42 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.155, allocations: 0 / 358 MB, free: 12.42 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000294/0.1553, allocations: 24 kB / 358 MB, free: 12.4 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,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.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.001136/0.1565, allocations: 422.6 kB / 358.4 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002403/0.1567, allocations: 71.84 kB / 358.5 MB, free: 12.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.1567, allocations: 0 / 358.5 MB, free: 12.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.489e-05/0.1568, allocations: 27.98 kB / 358.5 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004607/0.1573, allocations: 60.36 kB / 358.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006795/0.158, allocations: 376.6 kB / 359 MB, free: 11.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003367/0.1583, allocations: 0.7283 MB / 359.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.582e-05/0.1584, allocations: 19.44 kB / 359.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1584, allocations: 0 / 359.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of Templates: time 0.006031/0.1644, allocations: 2.584 MB / 362.3 MB, free: 8.234 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches