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.0009895/0.0009894, allocations: 171.5 kB / 16.8 MB, free: 4.906 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.576/1.576, allocations: 205.4 MB / 223 MB, free: 9.016 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.0007587/0.0007586, allocations: 77.44 kB / 271.3 MB, free: 8.254 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.08117/0.08117, allocations: 12.6 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00047/0.0004701, allocations: 16 kB / 393.2 MB, free: 65.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08929/0.08978, allocations: 50.37 MB / 443.6 MB, free: 15.51 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3183/0.4081, allocations: 81.9 MB / 0.5132 GB, free: 12.62 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002102/0.4084, allocations: 85.73 kB / 0.5133 GB, free: 12.61 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01506/0.4235, allocations: 6.338 MB / 0.5195 GB, free: 8.625 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.4235, allocations: 4 kB / 0.5195 GB, free: 8.621 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.346e-05/0.4235, allocations: 4 kB / 0.5195 GB, free: 8.617 MB / 330.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.0006425/0.4242, allocations: 0.499 MB / 0.5199 GB, free: 8.078 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.4243, allocations: 12.03 kB / 0.52 GB, free: 8.066 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.147e-05/0.4243, allocations: 16.75 kB / 0.52 GB, free: 8.051 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003529/0.4247, allocations: 270.5 kB / 0.5202 GB, free: 7.773 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.115e-05/0.4247, allocations: 4.375 kB / 0.5202 GB, free: 7.77 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.86e-05/0.4248, allocations: 11.38 kB / 0.5202 GB, free: 7.762 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002909/0.4251, allocations: 142.8 kB / 0.5204 GB, free: 7.621 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.4251, allocations: 4.125 kB / 0.5204 GB, free: 7.617 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/0.4251, allocations: 10.98 kB / 0.5204 GB, free: 7.609 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.583e-06/0.4251, allocations: 4 kB / 0.5204 GB, free: 7.605 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.273e-05/0.4252, allocations: 36.92 kB / 0.5204 GB, free: 7.578 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004174/0.4256, allocations: 366 kB / 0.5208 GB, free: 7.207 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001736/0.4258, allocations: 120.5 kB / 0.5209 GB, free: 7.082 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.78e-05/0.4259, allocations: 42.38 kB / 0.5209 GB, free: 7.039 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.344e-05/0.4259, allocations: 4 kB / 0.5209 GB, free: 7.035 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001222/0.4261, allocations: 78 kB / 0.521 GB, free: 6.957 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 1.853e-06/0.4261, allocations: 3.938 kB / 0.521 GB, free: 6.953 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003137/0.4264, allocations: 140.8 kB / 0.5212 GB, free: 6.836 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.296e-05/0.4265, allocations: 135.1 kB / 0.5213 GB, free: 6.676 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002183/0.4267, allocations: 262.1 kB / 0.5215 GB, free: 6.457 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.371e-05/0.4267, allocations: 29.7 kB / 0.5216 GB, free: 6.422 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.989e-05/0.4268, allocations: 120.6 kB / 0.5217 GB, free: 6.328 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.205e-05/0.4268, allocations: 23.61 kB / 0.5217 GB, free: 6.309 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-06/0.4268, allocations: 0 / 0.5217 GB, free: 6.309 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.246e-05/0.4269, allocations: 330.3 kB / 0.522 GB, free: 5.984 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.497e-05/0.4269, allocations: 23.17 kB / 0.522 GB, free: 5.969 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.542e-05/0.427, allocations: 72.94 kB / 0.5221 GB, free: 5.887 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001051/0.4271, allocations: 78.84 kB / 0.5222 GB, free: 5.812 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.4271, allocations: 0 / 0.5222 GB, free: 5.812 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001724/0.4273, allocations: 117.3 kB / 0.5223 GB, free: 5.711 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.4273, allocations: 7.984 kB / 0.5223 GB, free: 5.703 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.4273, allocations: 3.938 kB / 0.5223 GB, free: 5.699 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.4273, allocations: 7.984 kB / 0.5223 GB, free: 5.691 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-05/0.4274, allocations: 8 kB / 0.5223 GB, free: 5.684 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.4274, allocations: 4 kB / 0.5223 GB, free: 5.68 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.957e-05/0.4275, allocations: 14.39 kB / 0.5223 GB, free: 5.668 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.558e-06/0.4275, allocations: 4 kB / 0.5223 GB, free: 5.664 MB / 330.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.0001032/0.4276, allocations: 164 kB / 0.5225 GB, free: 5.508 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.35e-05/0.4277, allocations: 56.45 kB / 0.5226 GB, free: 5.449 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002032/0.4279, allocations: 115.5 kB / 0.5227 GB, free: 5.348 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.4279, allocations: 4 kB / 0.5227 GB, free: 5.344 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.4279, allocations: 0 / 0.5227 GB, free: 5.344 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.428, allocations: 3.984 kB / 0.5227 GB, free: 5.34 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001386/0.4281, allocations: 235.7 kB / 0.5229 GB, free: 5.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.4281, allocations: 0 / 0.5229 GB, free: 5.09 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.12e-05/0.4281, allocations: 8.062 kB / 0.5229 GB, free: 5.082 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.4282, allocations: 4 kB / 0.5229 GB, free: 5.078 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.4282, allocations: 2.875 kB / 0.5229 GB, free: 5.078 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.4282, allocations: 4 kB / 0.5229 GB, free: 5.074 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.4282, allocations: 0 / 0.5229 GB, free: 5.074 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001894/0.4284, allocations: 171.8 kB / 0.5231 GB, free: 4.906 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.422e-05/0.4285, allocations: 111.7 kB / 0.5232 GB, free: 4.785 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.863e-05/0.4285, allocations: 7.625 kB / 0.5232 GB, free: 4.781 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.931e-05/0.4286, allocations: 4 kB / 0.5232 GB, free: 4.777 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.037e-05/0.4286, allocations: 7.984 kB / 0.5232 GB, free: 4.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.827e-06/0.4286, allocations: 0 / 0.5232 GB, free: 4.77 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001433/0.4288, allocations: 200.7 kB / 0.5234 GB, free: 4.605 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4288, allocations: 0 / 0.5234 GB, free: 4.605 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002888/0.4291, allocations: 39.31 kB / 0.5234 GB, free: 4.57 MB / 330.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.0008592/0.4299, allocations: 435.2 kB / 0.5238 GB, free: 4.152 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002192/0.4302, allocations: 73.47 kB / 0.5239 GB, free: 4.098 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4302, allocations: 0 / 0.5239 GB, free: 4.098 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.892e-05/0.4303, allocations: 30.3 kB / 0.5239 GB, free: 4.074 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004032/0.4307, allocations: 62.73 kB / 0.524 GB, free: 4.023 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005462/0.4312, allocations: 348 kB / 0.5243 GB, free: 3.676 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001612/0.4314, allocations: 0.7277 MB / 0.525 GB, free: 2.926 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.993e-05/0.4315, allocations: 25.41 kB / 0.5251 GB, free: 2.902 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.305e-05/0.4315, allocations: 22.05 kB / 0.5251 GB, free: 2.883 MB / 330.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4315, allocations: 4 kB / 0.5251 GB, free: 2.879 MB / 330.7 MB Notification: Performance of Templates: time 0.005037/0.4366, allocations: 2.344 MB / 0.5274 GB, free: 0.5508 MB / 330.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/jenkins1/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