Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_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.001117/0.001117, allocations: 172.2 kB / 16.44 MB, free: 5.68 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.544/1.544, allocations: 205.4 MB / 222.6 MB, free: 9.098 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.000803/0.0008031, allocations: 96.78 kB / 270.9 MB, free: 8.34 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07358/0.07358, allocations: 12.59 MB / 331.8 MB, free: 11.36 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000484/0.0004841, allocations: 12 kB / 392 MB, free: 66.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07795/0.07845, allocations: 50.38 MB / 442.4 MB, free: 16.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample): time 0.002084/0.08058, allocations: 1.54 MB / 443.9 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001269/0.08188, allocations: 0.9058 MB / 444.8 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001392/0.08205, allocations: 4 kB / 444.8 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005118/0.08258, allocations: 139.6 kB / 445 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000245/0.08283, allocations: 91.69 kB / 445.1 MB, free: 13.74 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004595/0.0833, allocations: 147.8 kB / 445.2 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001908/0.0835, allocations: 171.4 kB / 445.4 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.406e-05/0.08361, allocations: 29.53 kB / 445.4 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.651e-05/0.08371, allocations: 63.69 kB / 445.5 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.25e-05/0.08381, allocations: 67.69 kB / 445.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.187e-05/0.08384, allocations: 4 kB / 445.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001177/0.08396, allocations: 35.98 kB / 445.6 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.261e-05/0.08402, allocations: 31.84 kB / 445.6 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.074e-05/0.08408, allocations: 53.58 kB / 445.6 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000202/0.08429, allocations: 152 kB / 445.8 MB, free: 13 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.0843, allocations: 0 / 445.8 MB, free: 13 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.08431, allocations: 0 / 445.8 MB, free: 13 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.712e-06/0.08432, allocations: 0 / 445.8 MB, free: 13 MB / 298.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.000656/0.08498, allocations: 496.1 kB / 446.3 MB, free: 12.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.08503, allocations: 12.03 kB / 446.3 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.751e-05/0.0851, allocations: 15.81 kB / 446.3 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003341/0.08544, allocations: 261.5 kB / 446.6 MB, free: 12.13 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.842e-05/0.08547, allocations: 0 / 446.6 MB, free: 12.13 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.626e-05/0.0855, allocations: 12 kB / 446.6 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002935/0.08579, allocations: 146.7 kB / 446.7 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.08582, allocations: 0 / 446.7 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.43e-05/0.08584, allocations: 3.984 kB / 446.7 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.08585, allocations: 4 kB / 446.7 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.819e-05/0.08595, allocations: 31.92 kB / 446.8 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004087/0.08637, allocations: 362.4 kB / 447.1 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001807/0.08656, allocations: 107.9 kB / 447.2 MB, free: 11.37 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.606e-05/0.08664, allocations: 42.56 kB / 447.3 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.954e-05/0.08668, allocations: 12 kB / 447.3 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001346/0.08682, allocations: 75.33 kB / 447.3 MB, free: 11.22 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.593e-06/0.08683, allocations: 0 / 447.3 MB, free: 11.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003132/0.08715, allocations: 145.5 kB / 447.5 MB, free: 11.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.962e-05/0.08721, allocations: 140.4 kB / 447.6 MB, free: 10.9 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002064/0.08742, allocations: 261 kB / 447.9 MB, free: 10.64 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.269e-05/0.08744, allocations: 29.7 kB / 447.9 MB, free: 10.6 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.168e-05/0.0875, allocations: 116.1 kB / 448 MB, free: 10.48 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.098e-05/0.08753, allocations: 19.75 kB / 448 MB, free: 10.46 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.929e-06/0.08754, allocations: 4 kB / 448 MB, free: 10.46 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.218e-05/0.0876, allocations: 330.9 kB / 448.4 MB, free: 10.13 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.537e-05/0.08766, allocations: 20 kB / 448.4 MB, free: 10.11 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.789e-05/0.08773, allocations: 65.98 kB / 448.4 MB, free: 10.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.445e-05/0.08781, allocations: 31.97 kB / 448.5 MB, free: 9.992 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.08782, allocations: 0 / 448.5 MB, free: 9.992 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001725/0.08799, allocations: 113.4 kB / 448.6 MB, free: 9.875 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.08802, allocations: 4 kB / 448.6 MB, free: 9.871 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.08803, allocations: 0 / 448.6 MB, free: 9.871 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.08805, allocations: 4 kB / 448.6 MB, free: 9.867 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.076e-05/0.08814, allocations: 11.94 kB / 448.6 MB, free: 9.855 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/0.08817, allocations: 7.984 kB / 448.6 MB, free: 9.848 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001094/0.08828, allocations: 15.98 kB / 448.6 MB, free: 9.832 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.275e-05/0.08831, allocations: 4 kB / 448.6 MB, free: 9.828 MB / 298.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.0001332/0.08845, allocations: 141.9 kB / 448.8 MB, free: 9.68 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.068e-05/0.08854, allocations: 73.44 kB / 448.8 MB, free: 9.602 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.625e-05/0.0886, allocations: 17.72 kB / 448.9 MB, free: 9.586 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.0886, allocations: 0 / 448.9 MB, free: 9.586 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.08861, allocations: 3.938 kB / 448.9 MB, free: 9.582 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.08863, allocations: 8.047 kB / 448.9 MB, free: 9.574 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001358/0.08877, allocations: 229.5 kB / 449.1 MB, free: 9.301 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.08878, allocations: 0 / 449.1 MB, free: 9.301 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.707e-05/0.08881, allocations: 4 kB / 449.1 MB, free: 9.297 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.08882, allocations: 4 kB / 449.1 MB, free: 9.293 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.081e-05/0.08884, allocations: 4 kB / 449.1 MB, free: 9.289 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.08884, allocations: 3.938 kB / 449.1 MB, free: 9.285 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.08885, allocations: 4 kB / 449.1 MB, free: 9.281 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001941/0.08905, allocations: 162.4 kB / 449.3 MB, free: 9.098 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.409e-05/0.08912, allocations: 112.9 kB / 449.4 MB, free: 8.969 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.301e-05/0.08917, allocations: 4 kB / 449.4 MB, free: 8.965 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.495e-05/0.08926, allocations: 8 kB / 449.4 MB, free: 8.957 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.038e-05/0.08931, allocations: 7.984 kB / 449.4 MB, free: 8.949 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.08933, allocations: 4 kB / 449.4 MB, free: 8.945 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001468/0.08948, allocations: 192.5 kB / 449.6 MB, free: 8.758 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08949, allocations: 4 kB / 449.6 MB, free: 8.754 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002333/0.08973, allocations: 24 kB / 449.6 MB, free: 8.73 MB / 298.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.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 (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.0007857/0.09052, allocations: 419.6 kB / 450 MB, free: 8.312 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001892/0.09072, allocations: 63.91 kB / 450.1 MB, free: 8.25 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.09073, allocations: 0 / 450.1 MB, free: 8.25 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.31e-05/0.0908, allocations: 27.92 kB / 450.1 MB, free: 8.223 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003638/0.09118, allocations: 56.64 kB / 450.2 MB, free: 8.168 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004747/0.09166, allocations: 373.6 kB / 450.5 MB, free: 7.766 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001389/0.09181, allocations: 0.7283 MB / 451.3 MB, free: 7.012 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.904e-05/0.09186, allocations: 19.44 kB / 451.3 MB, free: 6.992 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.09187, allocations: 0 / 451.3 MB, free: 6.992 MB / 298.7 MB Notification: Performance of Templates: time 0.003964/0.09583, allocations: 2.555 MB / 453.9 MB, free: 4.434 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches