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-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.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.001302/0.001302, allocations: 182.3 kB / 16.45 MB, free: 5.656 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.528/1.528, allocations: 205.4 MB / 222.6 MB, free: 9.113 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.0007574/0.0007574, allocations: 92.98 kB / 270.9 MB, free: 8.348 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.07848/0.07848, allocations: 12.59 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004052/0.0004054, allocations: 12 kB / 392 MB, free: 66.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0848/0.08522, allocations: 50.38 MB / 442.4 MB, free: 16.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample): time 0.001905/0.08717, allocations: 1.54 MB / 443.9 MB, free: 14.9 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001244/0.08844, allocations: 0.9759 MB / 444.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001316/0.0886, allocations: 7.938 kB / 444.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002784/0.08888, allocations: 55.8 kB / 444.9 MB, free: 13.85 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002232/0.08912, allocations: 79.72 kB / 445 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006072/0.08974, allocations: 195.6 kB / 445.2 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001771/0.08993, allocations: 151.5 kB / 445.4 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.221e-05/0.09003, allocations: 13.56 kB / 445.4 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.273e-05/0.09013, allocations: 71.69 kB / 445.4 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.648e-05/0.09022, allocations: 63.69 kB / 445.5 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.153e-05/0.09025, allocations: 4 kB / 445.5 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001195/0.09037, allocations: 47.97 kB / 445.6 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.611e-05/0.09044, allocations: 43.84 kB / 445.6 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.79e-05/0.09048, allocations: 49.58 kB / 445.7 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002133/0.0907, allocations: 171.9 kB / 445.8 MB, free: 12.97 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.09071, allocations: 0 / 445.8 MB, free: 12.97 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.09072, allocations: 0 / 445.8 MB, free: 12.97 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.09073, allocations: 0 / 445.8 MB, free: 12.97 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.0005398/0.09128, allocations: 0.4999 MB / 446.3 MB, free: 12.42 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.076e-05/0.09131, allocations: 12.03 kB / 446.3 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.953e-05/0.09137, allocations: 19.72 kB / 446.4 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002684/0.09164, allocations: 282.4 kB / 446.6 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.801e-05/0.09167, allocations: 4 kB / 446.6 MB, free: 12.06 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.808e-05/0.09169, allocations: 11.98 kB / 446.6 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002861/0.09199, allocations: 155.6 kB / 446.8 MB, free: 11.87 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.09201, allocations: 7.938 kB / 446.8 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.417e-05/0.09203, allocations: 3.984 kB / 446.8 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.09204, allocations: 0 / 446.8 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000104/0.09215, allocations: 35.92 kB / 446.8 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004189/0.09258, allocations: 386.3 kB / 447.2 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000207/0.0928, allocations: 115.9 kB / 447.3 MB, free: 11.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.48e-05/0.09288, allocations: 46.55 kB / 447.4 MB, free: 11.2 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.66e-05/0.09292, allocations: 8 kB / 447.4 MB, free: 11.19 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001762/0.0931, allocations: 71.33 kB / 447.5 MB, free: 11.11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 2.164e-06/0.09311, allocations: 4 kB / 447.5 MB, free: 11.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003352/0.09345, allocations: 153.3 kB / 447.6 MB, free: 10.95 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.291e-05/0.09352, allocations: 162.2 kB / 447.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002512/0.09377, allocations: 326.7 kB / 448.1 MB, free: 10.42 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.384e-05/0.0938, allocations: 29.7 kB / 448.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.034e-05/0.09386, allocations: 132 kB / 448.2 MB, free: 10.25 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.999e-05/0.09389, allocations: 24.12 kB / 448.3 MB, free: 10.23 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.87e-06/0.0939, allocations: 0 / 448.3 MB, free: 10.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.661e-05/0.09396, allocations: 338.8 kB / 448.6 MB, free: 9.891 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.032e-05/0.09403, allocations: 19.98 kB / 448.6 MB, free: 9.871 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.26e-05/0.09412, allocations: 86.78 kB / 448.7 MB, free: 9.762 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.237e-05/0.0942, allocations: 32 kB / 448.7 MB, free: 9.73 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.09421, allocations: 0 / 448.7 MB, free: 9.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001923/0.0944, allocations: 121.3 kB / 448.9 MB, free: 9.605 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.09443, allocations: 8 kB / 448.9 MB, free: 9.598 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.09444, allocations: 0 / 448.9 MB, free: 9.598 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.09446, allocations: 8.125 kB / 448.9 MB, free: 9.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001014/0.09456, allocations: 19.94 kB / 448.9 MB, free: 9.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.533e-06/0.09458, allocations: 7.984 kB / 448.9 MB, free: 9.562 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.873e-05/0.09467, allocations: 7.953 kB / 448.9 MB, free: 9.555 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-06/0.09469, allocations: 7.938 kB / 448.9 MB, free: 9.547 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,table.y,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 9.916e-05/0.09479, allocations: 162.7 kB / 449.1 MB, free: 9.379 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.259e-05/0.09486, allocations: 69.34 kB / 449.1 MB, free: 9.305 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.418e-05/0.09491, allocations: 25.77 kB / 449.2 MB, free: 9.281 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.09492, allocations: 8 kB / 449.2 MB, free: 9.273 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.09493, allocations: 0 / 449.2 MB, free: 9.273 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.237e-06/0.09494, allocations: 0 / 449.2 MB, free: 9.273 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001378/0.09508, allocations: 241.4 kB / 449.4 MB, free: 8.988 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.09509, allocations: 0 / 449.4 MB, free: 8.988 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.972e-05/0.09515, allocations: 11.98 kB / 449.4 MB, free: 8.977 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.09516, allocations: 4 kB / 449.4 MB, free: 8.973 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.207e-06/0.09518, allocations: 0 / 449.4 MB, free: 8.973 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.09518, allocations: 4 kB / 449.4 MB, free: 8.969 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.09519, allocations: 0 / 449.4 MB, free: 8.969 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002017/0.0954, allocations: 166.5 kB / 449.6 MB, free: 8.781 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.689e-05/0.09547, allocations: 116.8 kB / 449.7 MB, free: 8.648 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.786e-05/0.09551, allocations: 4 kB / 449.7 MB, free: 8.645 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.682e-05/0.09558, allocations: 11.98 kB / 449.7 MB, free: 8.633 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.248e-05/0.09563, allocations: 4 kB / 449.7 MB, free: 8.629 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.494e-05/0.09565, allocations: 11.98 kB / 449.7 MB, free: 8.617 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001644/0.09582, allocations: 237.9 kB / 450 MB, free: 8.383 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.09583, allocations: 0 / 450 MB, free: 8.383 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002274/0.09606, allocations: 36 kB / 450 MB, free: 8.348 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,table.y,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.0007181/0.09678, allocations: 437.7 kB / 450.4 MB, free: 7.914 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000179/0.09697, allocations: 67.91 kB / 450.5 MB, free: 7.848 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.09699, allocations: 4.25 kB / 450.5 MB, free: 7.844 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.661e-05/0.09706, allocations: 27.98 kB / 450.5 MB, free: 7.816 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003477/0.09741, allocations: 64.38 kB / 450.6 MB, free: 7.754 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004608/0.09788, allocations: 422.1 kB / 451 MB, free: 7.309 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001491/0.09805, allocations: 0.74 MB / 451.7 MB, free: 6.543 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.451e-05/0.0981, allocations: 23.44 kB / 451.8 MB, free: 6.523 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.0981, allocations: 0 / 451.8 MB, free: 6.523 MB / 298.7 MB Notification: Performance of Templates: time 0.004278/0.1024, allocations: 2.863 MB / 454.6 MB, free: 3.656 MB / 298.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/jenkins/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