Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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/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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001744/0.001745, allocations: 180.5 kB / 17.46 MB, free: 4.363 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.731/2.731, allocations: 205.4 MB / 223.6 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.001126/0.001126, allocations: 82.42 kB / 271.9 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1628/0.1628, allocations: 12.2 MB / 332.4 MB, free: 11.65 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009232/0.0009235, allocations: 16 kB / 392.7 MB, free: 67.08 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1553/0.1563, allocations: 50.3 MB / 443 MB, free: 16.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5261/0.6825, allocations: 81.88 MB / 0.5126 GB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004541/0.683, allocations: 88.56 kB / 0.5127 GB, free: 12.45 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02427/0.7073, allocations: 7.017 MB / 0.5195 GB, free: 9.336 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.067e-06/0.7074, allocations: 0 / 0.5195 GB, free: 9.336 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.366e-05/0.7075, allocations: 8 kB / 0.5195 GB, free: 9.328 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.001175/0.7087, allocations: 0.5309 MB / 0.5201 GB, free: 8.758 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.818e-05/0.7088, allocations: 8.031 kB / 0.5201 GB, free: 8.75 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.7089, allocations: 24.66 kB / 0.5201 GB, free: 8.727 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000661/0.7096, allocations: 297.8 kB / 0.5204 GB, free: 8.418 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.879e-05/0.7096, allocations: 12.25 kB / 0.5204 GB, free: 8.406 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.943e-05/0.7097, allocations: 7.562 kB / 0.5204 GB, free: 8.402 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005406/0.7102, allocations: 161.3 kB / 0.5205 GB, free: 8.246 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.7103, allocations: 4.188 kB / 0.5205 GB, free: 8.242 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.294e-05/0.7103, allocations: 3.938 kB / 0.5206 GB, free: 8.238 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.7103, allocations: 0 / 0.5206 GB, free: 8.238 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001602/0.7105, allocations: 48.03 kB / 0.5206 GB, free: 8.203 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007486/0.7112, allocations: 399 kB / 0.521 GB, free: 7.809 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002977/0.7115, allocations: 120.8 kB / 0.5211 GB, free: 7.684 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.7117, allocations: 44.88 kB / 0.5211 GB, free: 7.641 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.082e-05/0.7117, allocations: 7.938 kB / 0.5211 GB, free: 7.633 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002453/0.712, allocations: 77.31 kB / 0.5212 GB, free: 7.555 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.304e-06/0.712, allocations: 0 / 0.5212 GB, free: 7.555 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0006076/0.7126, allocations: 159.3 kB / 0.5214 GB, free: 7.426 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001381/0.7128, allocations: 162.2 kB / 0.5215 GB, free: 7.23 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005242/0.7133, allocations: 325.4 kB / 0.5218 GB, free: 6.961 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.04e-05/0.7134, allocations: 29.7 kB / 0.5219 GB, free: 6.926 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.649e-05/0.7135, allocations: 131.6 kB / 0.522 GB, free: 6.824 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.091e-05/0.7135, allocations: 23.67 kB / 0.522 GB, free: 6.801 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.007e-05/0.7135, allocations: 3.812 kB / 0.522 GB, free: 6.801 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.7136, allocations: 333.9 kB / 0.5223 GB, free: 6.473 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.607e-05/0.7137, allocations: 22.55 kB / 0.5224 GB, free: 6.457 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001391/0.7139, allocations: 104.6 kB / 0.5225 GB, free: 6.348 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001835/0.7141, allocations: 81.59 kB / 0.5225 GB, free: 6.273 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.7141, allocations: 0 / 0.5225 GB, free: 6.273 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.00029/0.7144, allocations: 137.9 kB / 0.5227 GB, free: 6.156 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.236e-05/0.7144, allocations: 12.77 kB / 0.5227 GB, free: 6.145 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.869e-06/0.7145, allocations: 0 / 0.5227 GB, free: 6.145 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.614e-05/0.7145, allocations: 0 / 0.5227 GB, free: 6.145 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001513/0.7146, allocations: 19.94 kB / 0.5227 GB, free: 6.125 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.7147, allocations: 4 kB / 0.5227 GB, free: 6.121 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001202/0.7148, allocations: 8.031 kB / 0.5227 GB, free: 6.113 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.065e-05/0.7148, allocations: 11.05 kB / 0.5227 GB, free: 6.105 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.0001921/0.715, allocations: 157 kB / 0.5229 GB, free: 5.953 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001087/0.7151, allocations: 71.97 kB / 0.5229 GB, free: 5.883 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003488/0.7155, allocations: 122.8 kB / 0.5231 GB, free: 5.781 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.7155, allocations: 0 / 0.5231 GB, free: 5.781 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.7155, allocations: 0 / 0.5231 GB, free: 5.781 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.104e-06/0.7156, allocations: 4 kB / 0.5231 GB, free: 5.777 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002802/0.7158, allocations: 241.8 kB / 0.5233 GB, free: 5.52 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.7159, allocations: 0 / 0.5233 GB, free: 5.52 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.04e-05/0.716, allocations: 23.3 kB / 0.5233 GB, free: 5.5 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.716, allocations: 4.062 kB / 0.5233 GB, free: 5.496 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.76e-05/0.716, allocations: 4 kB / 0.5233 GB, free: 5.492 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.716, allocations: 0 / 0.5233 GB, free: 5.492 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.716, allocations: 0 / 0.5233 GB, free: 5.492 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003702/0.7164, allocations: 183.4 kB / 0.5235 GB, free: 5.316 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001838/0.7166, allocations: 130.9 kB / 0.5236 GB, free: 5.18 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.145e-05/0.7167, allocations: 7.5 kB / 0.5236 GB, free: 5.176 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.756e-05/0.7168, allocations: 0 / 0.5236 GB, free: 5.176 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/0.7169, allocations: 7.984 kB / 0.5236 GB, free: 5.168 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.664e-05/0.7169, allocations: 7.75 kB / 0.5236 GB, free: 5.164 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003361/0.7173, allocations: 243.4 kB / 0.5239 GB, free: 4.969 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.7173, allocations: 0 / 0.5239 GB, free: 4.969 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004949/0.7178, allocations: 39.59 kB / 0.5239 GB, free: 4.934 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.001356/0.7192, allocations: 448.4 kB / 0.5243 GB, free: 4.5 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004342/0.7196, allocations: 92.94 kB / 0.5244 GB, free: 4.43 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.7196, allocations: 0 / 0.5244 GB, free: 4.43 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001185/0.7197, allocations: 33.92 kB / 0.5245 GB, free: 4.406 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006321/0.7204, allocations: 74.3 kB / 0.5245 GB, free: 4.348 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009263/0.7213, allocations: 434.2 kB / 0.5249 GB, free: 3.922 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002521/0.7216, allocations: 0.7393 MB / 0.5257 GB, free: 3.16 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.065e-05/0.7217, allocations: 26.8 kB / 0.5257 GB, free: 3.137 MB / 330.7 MB Notification: Performance of SimCode: time 8.52e-07/0.7217, allocations: 0 / 0.5257 GB, free: 3.137 MB / 330.7 MB Notification: Performance of Templates: time 0.006755/0.7285, allocations: 2.92 MB / 0.5285 GB, free: 240 kB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches