Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.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/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/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.IntegerSignals.SuperSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|superSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|superSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002248/0.002248, allocations: 180.9 kB / 17.46 MB, free: 4.238 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.762/2.762, allocations: 205.4 MB / 223.6 MB, free: 9.02 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.001301/0.0013, allocations: 88.92 kB / 272 MB, free: 8.234 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1625/0.1625, allocations: 12.19 MB / 332.4 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007869/0.000787, allocations: 16 kB / 392.7 MB, free: 67.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1504/0.1513, allocations: 50.29 MB / 443 MB, free: 16.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5616/0.713, allocations: 81.88 MB / 0.5126 GB, free: 12.55 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000317/0.7134, allocations: 84.14 kB / 0.5127 GB, free: 12.54 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02326/0.7366, allocations: 6.956 MB / 0.5195 GB, free: 9.391 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.128e-06/0.7367, allocations: 0 / 0.5195 GB, free: 9.391 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.079e-05/0.7368, allocations: 4 kB / 0.5195 GB, free: 9.387 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.0009221/0.7377, allocations: 0.5418 MB / 0.52 GB, free: 8.809 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/0.7378, allocations: 8.031 kB / 0.52 GB, free: 8.801 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001051/0.7379, allocations: 24.66 kB / 0.52 GB, free: 8.777 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005243/0.7384, allocations: 288 kB / 0.5203 GB, free: 8.477 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.611e-05/0.7385, allocations: 11.44 kB / 0.5203 GB, free: 8.469 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.382e-05/0.7385, allocations: 8.312 kB / 0.5203 GB, free: 8.461 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004532/0.739, allocations: 174.5 kB / 0.5205 GB, free: 8.293 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.739, allocations: 192 / 0.5205 GB, free: 8.293 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.161e-05/0.7391, allocations: 3.938 kB / 0.5205 GB, free: 8.289 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.7391, allocations: 4 kB / 0.5205 GB, free: 8.285 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001484/0.7392, allocations: 42.34 kB / 0.5205 GB, free: 8.254 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006461/0.7399, allocations: 403.8 kB / 0.5209 GB, free: 7.855 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002797/0.7402, allocations: 128.2 kB / 0.5211 GB, free: 7.727 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001252/0.7403, allocations: 44.44 kB / 0.5211 GB, free: 7.684 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.308e-05/0.7404, allocations: 3.984 kB / 0.5211 GB, free: 7.68 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002164/0.7406, allocations: 82.69 kB / 0.5212 GB, free: 7.598 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.575e-06/0.7406, allocations: 4 kB / 0.5212 GB, free: 7.594 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.000499/0.7411, allocations: 155.7 kB / 0.5213 GB, free: 7.465 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.012e-05/0.7412, allocations: 158.2 kB / 0.5215 GB, free: 7.273 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004609/0.7417, allocations: 327.4 kB / 0.5218 GB, free: 7 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.556e-05/0.7417, allocations: 29.08 kB / 0.5218 GB, free: 6.969 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.149e-05/0.7418, allocations: 129.4 kB / 0.5219 GB, free: 6.867 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.463e-05/0.7419, allocations: 26.67 kB / 0.522 GB, free: 6.844 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.678e-06/0.7419, allocations: 3 kB / 0.522 GB, free: 6.844 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.32e-05/0.742, allocations: 328.5 kB / 0.5223 GB, free: 6.52 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.59e-05/0.7421, allocations: 24.67 kB / 0.5223 GB, free: 6.504 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001432/0.7422, allocations: 92.94 kB / 0.5224 GB, free: 6.402 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001875/0.7424, allocations: 89.27 kB / 0.5225 GB, free: 6.32 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.7424, allocations: 0 / 0.5225 GB, free: 6.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002916/0.7427, allocations: 128.7 kB / 0.5226 GB, free: 6.211 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.664e-05/0.7428, allocations: 12.69 kB / 0.5226 GB, free: 6.199 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.7428, allocations: 4 kB / 0.5226 GB, free: 6.195 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.489e-05/0.7428, allocations: 0 / 0.5226 GB, free: 6.195 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001391/0.743, allocations: 19.98 kB / 0.5226 GB, free: 6.176 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.743, allocations: 3.938 kB / 0.5226 GB, free: 6.172 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00011/0.7431, allocations: 7.188 kB / 0.5227 GB, free: 6.168 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.588e-05/0.7432, allocations: 7.984 kB / 0.5227 GB, free: 6.16 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,superSample.y,superSample.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.000154/0.7433, allocations: 159.4 kB / 0.5228 GB, free: 6.008 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.7434, allocations: 72.47 kB / 0.5229 GB, free: 5.934 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003192/0.7438, allocations: 122.1 kB / 0.523 GB, free: 5.836 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.7438, allocations: 7.984 kB / 0.523 GB, free: 5.828 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.7438, allocations: 0 / 0.523 GB, free: 5.828 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.7438, allocations: 0 / 0.523 GB, free: 5.828 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002372/0.744, allocations: 249.9 kB / 0.5232 GB, free: 5.566 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.7441, allocations: 0 / 0.5232 GB, free: 5.566 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.659e-05/0.7442, allocations: 15.92 kB / 0.5233 GB, free: 5.551 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.52e-06/0.7442, allocations: 4 kB / 0.5233 GB, free: 5.547 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.466e-05/0.7442, allocations: 8 kB / 0.5233 GB, free: 5.539 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.751e-06/0.7442, allocations: 4 kB / 0.5233 GB, free: 5.535 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.7442, allocations: 0 / 0.5233 GB, free: 5.535 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004009/0.7446, allocations: 173.2 kB / 0.5234 GB, free: 5.371 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001487/0.7448, allocations: 119.6 kB / 0.5236 GB, free: 5.242 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.859e-05/0.7449, allocations: 15.42 kB / 0.5236 GB, free: 5.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.717e-05/0.745, allocations: 4 kB / 0.5236 GB, free: 5.227 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.362e-05/0.7451, allocations: 11.92 kB / 0.5236 GB, free: 5.215 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.902e-05/0.7451, allocations: 7.312 kB / 0.5236 GB, free: 5.211 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003598/0.7455, allocations: 237.6 kB / 0.5238 GB, free: 5.02 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7455, allocations: 0 / 0.5238 GB, free: 5.02 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004899/0.746, allocations: 54.5 kB / 0.5239 GB, free: 4.973 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,superSample.y,sample.y,superSample.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.001331/0.7473, allocations: 444.4 kB / 0.5243 GB, free: 4.547 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003653/0.7477, allocations: 91.31 kB / 0.5244 GB, free: 4.477 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.7477, allocations: 0 / 0.5244 GB, free: 4.477 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001121/0.7478, allocations: 34.17 kB / 0.5244 GB, free: 4.453 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006165/0.7485, allocations: 62.25 kB / 0.5245 GB, free: 4.406 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008685/0.7493, allocations: 441.8 kB / 0.5249 GB, free: 3.973 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002315/0.7496, allocations: 0.7415 MB / 0.5256 GB, free: 3.211 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.857e-05/0.7497, allocations: 22.94 kB / 0.5256 GB, free: 3.191 MB / 330.7 MB Notification: Performance of SimCode: time 3.1e-07/0.7497, allocations: 0 / 0.5256 GB, free: 3.191 MB / 330.7 MB Notification: Performance of Templates: time 0.008262/0.758, allocations: 2.919 MB / 0.5285 GB, free: 296 kB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches