Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001144/0.001144, allocations: 181 kB / 15.8 MB, free: 6.34 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.666/1.666, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000909/0.0009091, allocations: 102.8 kB / 270.3 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08133/0.08133, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004065/0.0004066, allocations: 17.83 kB / 392 MB, free: 54.84 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09996/0.1004, allocations: 50.36 MB / 442.4 MB, free: 10.94 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1267/0.2272, allocations: 81.86 MB / 0.5119 GB, free: 8.973 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002773/0.2275, allocations: 83.95 kB / 0.512 GB, free: 8.891 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01672/0.2442, allocations: 6.33 MB / 0.5182 GB, free: 2.551 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2443, allocations: 0 / 0.5182 GB, free: 2.551 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.73e-05/0.2443, allocations: 4 kB / 0.5182 GB, free: 2.547 MB / 362.7 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.000571/0.2449, allocations: 0.5002 MB / 0.5187 GB, free: 1.992 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.571e-05/0.2449, allocations: 8.031 kB / 0.5187 GB, free: 1.984 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.41e-05/0.245, allocations: 15.81 kB / 0.5187 GB, free: 1.969 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003952/0.2454, allocations: 273.6 kB / 0.519 GB, free: 1.664 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.427e-05/0.2454, allocations: 11.95 kB / 0.519 GB, free: 1.652 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.426e-05/0.2454, allocations: 4 kB / 0.519 GB, free: 1.648 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002415/0.2457, allocations: 148.8 kB / 0.5191 GB, free: 1.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.631e-06/0.2457, allocations: 3.938 kB / 0.5191 GB, free: 1.477 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.2457, allocations: 8 kB / 0.5191 GB, free: 1.469 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.554e-06/0.2457, allocations: 0 / 0.5191 GB, free: 1.469 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.076e-05/0.2458, allocations: 39.91 kB / 0.5192 GB, free: 1.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004019/0.2462, allocations: 362.5 kB / 0.5195 GB, free: 1.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001794/0.2464, allocations: 107.9 kB / 0.5196 GB, free: 0.8867 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.594e-05/0.2464, allocations: 8.125 kB / 0.5196 GB, free: 0.8789 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001175/0.2466, allocations: 79.39 kB / 0.5197 GB, free: 0.7891 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 2.044e-06/0.2466, allocations: 0 / 0.5197 GB, free: 0.7891 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003083/0.2469, allocations: 145.3 kB / 0.5199 GB, free: 0.6406 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.333e-05/0.247, allocations: 136.5 kB / 0.52 GB, free: 488 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002497/0.2472, allocations: 240.1 kB / 0.5202 GB, free: 240 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/0.2473, allocations: 25.7 kB / 0.5202 GB, free: 208 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.189e-05/0.2473, allocations: 124.3 kB / 0.5204 GB, free: 80 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.664e-05/0.2474, allocations: 19.8 kB / 0.5204 GB, free: 60 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.839e-06/0.2474, allocations: 0 / 0.5204 GB, free: 60 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.1967/0.4441, allocations: 333.2 kB / 0.5207 GB, free: 84.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001313/0.4443, allocations: 18.17 kB / 0.5207 GB, free: 84.02 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.943e-05/0.4444, allocations: 67.61 kB / 0.5208 GB, free: 83.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.944e-05/0.4445, allocations: 33.62 kB / 0.5208 GB, free: 83.96 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.4445, allocations: 0 / 0.5208 GB, free: 83.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002591/0.4448, allocations: 117.8 kB / 0.5209 GB, free: 83.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.4448, allocations: 8.125 kB / 0.5209 GB, free: 83.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-06/0.4448, allocations: 0.625 kB / 0.5209 GB, free: 83.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.4448, allocations: 3.219 kB / 0.5209 GB, free: 83.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.506e-05/0.4449, allocations: 13.69 kB / 0.5209 GB, free: 83.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.4449, allocations: 5.344 kB / 0.5209 GB, free: 83.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.315e-05/0.445, allocations: 8.719 kB / 0.521 GB, free: 83.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.076e-05/0.4451, allocations: 3.5 kB / 0.521 GB, free: 83.93 MB / 362.7 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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample.y,subSample.u,sample.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001605/0.4452, allocations: 150.8 kB / 0.5211 GB, free: 83.81 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.4e-05/0.4453, allocations: 66.69 kB / 0.5212 GB, free: 83.78 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002376/0.4455, allocations: 114.2 kB / 0.5213 GB, free: 83.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.4456, allocations: 2.453 kB / 0.5213 GB, free: 83.73 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.4456, allocations: 3.438 kB / 0.5213 GB, free: 83.73 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.4456, allocations: 0.7031 kB / 0.5213 GB, free: 83.73 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001747/0.4458, allocations: 231.9 kB / 0.5215 GB, free: 83.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.4458, allocations: 2.75 kB / 0.5215 GB, free: 83.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.272e-05/0.4458, allocations: 8.781 kB / 0.5215 GB, free: 83.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.4458, allocations: 4.688 kB / 0.5215 GB, free: 83.55 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.4458, allocations: 5.234 kB / 0.5215 GB, free: 83.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.4458, allocations: 1.062 kB / 0.5215 GB, free: 83.54 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.4459, allocations: 4.375 kB / 0.5215 GB, free: 83.54 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002267/0.4461, allocations: 190.5 kB / 0.5217 GB, free: 83.43 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.126e-05/0.4462, allocations: 110.8 kB / 0.5218 GB, free: 83.32 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.892e-05/0.4462, allocations: 4.859 kB / 0.5218 GB, free: 83.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.424e-05/0.4463, allocations: 8.828 kB / 0.5218 GB, free: 83.32 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.723e-05/0.4463, allocations: 7.125 kB / 0.5218 GB, free: 83.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.206e-05/0.4464, allocations: 8.938 kB / 0.5218 GB, free: 83.32 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001765/0.4465, allocations: 192.2 kB / 0.522 GB, free: 83.25 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4465, allocations: 3.844 kB / 0.522 GB, free: 83.25 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002612/0.4468, allocations: 38.3 kB / 0.5221 GB, free: 83.25 MB / 362.7 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,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample.y,sample.y,subSample.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 (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008329/0.4477, allocations: 431 kB / 0.5225 GB, free: 82.96 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002206/0.4479, allocations: 79.11 kB / 0.5226 GB, free: 82.96 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4479, allocations: 1.344 kB / 0.5226 GB, free: 82.96 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.409e-05/0.448, allocations: 27.23 kB / 0.5226 GB, free: 82.96 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003181/0.4483, allocations: 56.5 kB / 0.5226 GB, free: 82.96 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005201/0.4488, allocations: 345.3 kB / 0.523 GB, free: 82.73 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001841/0.449, allocations: 0.7397 MB / 0.5237 GB, free: 82.04 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.647e-05/0.4491, allocations: 21.06 kB / 0.5237 GB, free: 82.04 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.598e-05/0.4492, allocations: 18.12 kB / 0.5237 GB, free: 82.03 MB / 362.7 MB Notification: Performance of SimCode: time 6.41e-07/0.4492, allocations: 0 / 0.5237 GB, free: 82.03 MB / 362.7 MB Notification: Performance of Templates: time 0.005971/0.4552, allocations: 2.324 MB / 0.526 GB, free: 81.8 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches