Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.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.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001478/0.001478, allocations: 186 kB / 16.44 MB, free: 5.691 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.878/1.878, allocations: 205.4 MB / 222.6 MB, free: 9.117 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.001081/0.001081, allocations: 96.12 kB / 270.9 MB, free: 8.371 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.09739/0.09739, allocations: 12.59 MB / 331.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005538/0.0005537, allocations: 16 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09342/0.094, allocations: 50.37 MB / 442.3 MB, free: 16.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4147/0.5087, allocations: 78.35 MB / 0.5085 GB, free: 12.77 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002693/0.509, allocations: 78.75 kB / 0.5086 GB, free: 12.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007844/0.5169, allocations: 1.997 MB / 0.5105 GB, free: 12.14 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.517, allocations: 0 / 0.5105 GB, free: 12.14 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.372e-05/0.517, allocations: 3.938 kB / 0.5105 GB, free: 12.14 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004303/0.5174, allocations: 374.4 kB / 0.5109 GB, free: 11.75 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.5175, allocations: 11.28 kB / 0.5109 GB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.523e-05/0.5175, allocations: 11.59 kB / 0.5109 GB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000202/0.5177, allocations: 201.5 kB / 0.5111 GB, free: 11.52 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.403e-05/0.5178, allocations: 6.281 kB / 0.5111 GB, free: 11.52 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.426e-05/0.5178, allocations: 4 kB / 0.5111 GB, free: 11.52 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003092/0.5181, allocations: 116.7 kB / 0.5112 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.5181, allocations: 0 / 0.5112 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.5182, allocations: 0 / 0.5112 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.5182, allocations: 0 / 0.5112 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001321/0.5183, allocations: 31.05 kB / 0.5112 GB, free: 11.42 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003965/0.5187, allocations: 280.3 kB / 0.5115 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001311/0.5189, allocations: 71.08 kB / 0.5116 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.55e-05/0.5189, allocations: 6.922 kB / 0.5116 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.138e-05/0.5189, allocations: 34.56 kB / 0.5116 GB, free: 11 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.784e-06/0.519, allocations: 4 kB / 0.5116 GB, free: 11 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003529/0.5193, allocations: 93.89 kB / 0.5117 GB, free: 10.95 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.865e-05/0.5194, allocations: 102.8 kB / 0.5118 GB, free: 10.82 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001218/0.5195, allocations: 132 kB / 0.5119 GB, free: 10.72 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.025e-05/0.5195, allocations: 29.7 kB / 0.512 GB, free: 10.68 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.33e-05/0.5196, allocations: 159.7 kB / 0.5121 GB, free: 10.53 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.659e-05/0.5196, allocations: 3.812 kB / 0.5121 GB, free: 10.53 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.292e-06/0.5196, allocations: 0 / 0.5121 GB, free: 10.53 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.962e-05/0.5197, allocations: 326.2 kB / 0.5124 GB, free: 10.21 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.555e-05/0.5198, allocations: 7.688 kB / 0.5124 GB, free: 10.21 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.744e-05/0.5199, allocations: 43.73 kB / 0.5125 GB, free: 10.16 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.609e-05/0.52, allocations: 19.11 kB / 0.5125 GB, free: 10.16 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.52, allocations: 0 / 0.5125 GB, free: 10.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001902/0.5202, allocations: 68.06 kB / 0.5126 GB, free: 10.12 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.5202, allocations: 3.875 kB / 0.5126 GB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.5202, allocations: 0 / 0.5126 GB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.5203, allocations: 3.844 kB / 0.5126 GB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.5204, allocations: 11.67 kB / 0.5126 GB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.146e-06/0.5204, allocations: 3.938 kB / 0.5126 GB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.973e-05/0.5205, allocations: 6.719 kB / 0.5126 GB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/0.5205, allocations: 3.875 kB / 0.5126 GB, free: 10.11 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 8.946e-05/0.5206, allocations: 128.7 kB / 0.5127 GB, free: 9.98 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.59e-05/0.5207, allocations: 48.14 kB / 0.5128 GB, free: 9.945 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.101e-05/0.5208, allocations: 15.48 kB / 0.5128 GB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.5208, allocations: 3.875 kB / 0.5128 GB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.5208, allocations: 0 / 0.5128 GB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.5208, allocations: 3.938 kB / 0.5128 GB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001788/0.521, allocations: 181.4 kB / 0.513 GB, free: 9.727 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.521, allocations: 0 / 0.513 GB, free: 9.727 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.439e-05/0.5211, allocations: 11.67 kB / 0.513 GB, free: 9.723 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.508e-06/0.5211, allocations: 7.906 kB / 0.513 GB, free: 9.719 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.5212, allocations: 0 / 0.513 GB, free: 9.719 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.5212, allocations: 0 / 0.513 GB, free: 9.719 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.5212, allocations: 3.844 kB / 0.513 GB, free: 9.719 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002357/0.5214, allocations: 209.1 kB / 0.5132 GB, free: 9.52 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.399e-05/0.5215, allocations: 96.28 kB / 0.5133 GB, free: 9.414 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.12e-05/0.5215, allocations: 3.938 kB / 0.5133 GB, free: 9.414 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001/0.5216, allocations: 3.984 kB / 0.5133 GB, free: 9.41 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.115e-05/0.5217, allocations: 3.875 kB / 0.5133 GB, free: 9.41 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/0.5217, allocations: 0 / 0.5133 GB, free: 9.41 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.502e-05/0.5218, allocations: 117.2 kB / 0.5134 GB, free: 9.324 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5218, allocations: 4 kB / 0.5134 GB, free: 9.32 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002983/0.5221, allocations: 3.875 kB / 0.5134 GB, free: 9.32 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 8.909e-05/0.5222, allocations: 94.56 kB / 0.5135 GB, free: 9.234 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002028/0.5224, allocations: 38.33 kB / 0.5135 GB, free: 9.223 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.5224, allocations: 0 / 0.5135 GB, free: 9.223 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.407e-05/0.5225, allocations: 15.98 kB / 0.5135 GB, free: 9.215 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003336/0.5229, allocations: 28.59 kB / 0.5136 GB, free: 9.207 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004142/0.5233, allocations: 226.2 kB / 0.5138 GB, free: 8.996 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001488/0.5235, allocations: 0.696 MB / 0.5145 GB, free: 8.289 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.48e-05/0.5235, allocations: 7.438 kB / 0.5145 GB, free: 8.285 MB / 330.7 MB Notification: Performance of SimCode: time 7.81e-07/0.5235, allocations: 0 / 0.5145 GB, free: 8.285 MB / 330.7 MB Notification: Performance of Templates: time 0.002505/0.526, allocations: 0.8084 MB / 0.5153 GB, free: 7.887 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches