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/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.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.001977/0.001977, allocations: 180.9 kB / 17.46 MB, free: 4.246 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.026/3.026, allocations: 205.4 MB / 223.6 MB, free: 9 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.001309/0.001309, allocations: 83.41 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.16/0.16, allocations: 12.2 MB / 332.4 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008673/0.0008679, allocations: 15.98 kB / 392.7 MB, free: 67.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1767/0.1777, allocations: 50.29 MB / 443 MB, free: 16.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6186/0.7963, allocations: 78.34 MB / 0.5091 GB, free: 13.04 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003194/0.7968, allocations: 85.53 kB / 0.5092 GB, free: 13.03 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009092/0.8059, allocations: 2.531 MB / 0.5117 GB, free: 12.26 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.106e-06/0.806, allocations: 4 kB / 0.5117 GB, free: 12.26 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.414e-05/0.806, allocations: 0 / 0.5117 GB, free: 12.26 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.0005188/0.8065, allocations: 369.6 kB / 0.512 GB, free: 11.87 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.447e-05/0.8066, allocations: 7.75 kB / 0.512 GB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.124e-05/0.8066, allocations: 16.53 kB / 0.5121 GB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002766/0.8069, allocations: 195.1 kB / 0.5123 GB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.535e-05/0.807, allocations: 7.969 kB / 0.5123 GB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.614e-05/0.807, allocations: 384 / 0.5123 GB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004081/0.8074, allocations: 135.2 kB / 0.5124 GB, free: 11.55 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.8074, allocations: 192 / 0.5124 GB, free: 11.55 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.991e-05/0.8075, allocations: 3.938 kB / 0.5124 GB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.114e-06/0.8075, allocations: 0 / 0.5124 GB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001212/0.8076, allocations: 27.05 kB / 0.5124 GB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004711/0.8081, allocations: 282.6 kB / 0.5127 GB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001552/0.8083, allocations: 83.75 kB / 0.5128 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.245e-05/0.8084, allocations: 29.73 kB / 0.5128 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.819e-05/0.8084, allocations: 0 / 0.5128 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.72e-05/0.8085, allocations: 38.55 kB / 0.5128 GB, free: 11.08 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.372e-06/0.8085, allocations: 3.781 kB / 0.5128 GB, free: 11.08 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003839/0.8089, allocations: 92.08 kB / 0.5129 GB, free: 11.03 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.381e-05/0.8089, allocations: 107.1 kB / 0.513 GB, free: 10.9 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001516/0.8091, allocations: 150.8 kB / 0.5132 GB, free: 10.78 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.473e-05/0.8091, allocations: 25.7 kB / 0.5132 GB, free: 10.75 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.652e-05/0.8092, allocations: 87.64 kB / 0.5133 GB, free: 10.67 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.989e-05/0.8092, allocations: 7.719 kB / 0.5133 GB, free: 10.66 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.41e-06/0.8092, allocations: 0 / 0.5133 GB, free: 10.66 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.821e-05/0.8093, allocations: 318.7 kB / 0.5136 GB, free: 10.35 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.263e-05/0.8094, allocations: 11 kB / 0.5136 GB, free: 10.35 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.294e-05/0.8095, allocations: 42.91 kB / 0.5136 GB, free: 10.3 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00013/0.8096, allocations: 50.3 kB / 0.5137 GB, free: 10.26 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.8096, allocations: 3.875 kB / 0.5137 GB, free: 10.26 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001994/0.8098, allocations: 78.86 kB / 0.5138 GB, free: 10.21 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.647e-05/0.8099, allocations: 4.469 kB / 0.5138 GB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.8099, allocations: 0 / 0.5138 GB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.506e-05/0.8099, allocations: 3.969 kB / 0.5138 GB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/0.8101, allocations: 15.81 kB / 0.5138 GB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.799e-06/0.8101, allocations: 0 / 0.5138 GB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.59e-05/0.8102, allocations: 11.86 kB / 0.5138 GB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.364e-05/0.8102, allocations: 3.812 kB / 0.5138 GB, free: 10.2 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 9.419e-05/0.8103, allocations: 122.2 kB / 0.5139 GB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.8104, allocations: 55.56 kB / 0.514 GB, free: 10.03 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.401e-05/0.8105, allocations: 11.59 kB / 0.514 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.8105, allocations: 3.844 kB / 0.514 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.8105, allocations: 4.062 kB / 0.514 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.77e-06/0.8105, allocations: 0 / 0.514 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002103/0.8107, allocations: 174.6 kB / 0.5142 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.8107, allocations: 0 / 0.5142 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.889e-05/0.8108, allocations: 7.781 kB / 0.5142 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.8109, allocations: 3.75 kB / 0.5142 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.477e-05/0.8109, allocations: 6.672 kB / 0.5142 GB, free: 9.812 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.8109, allocations: 0 / 0.5142 GB, free: 9.812 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.8109, allocations: 7.906 kB / 0.5142 GB, free: 9.809 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002193/0.8111, allocations: 181.3 kB / 0.5144 GB, free: 9.645 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.643e-05/0.8112, allocations: 92.72 kB / 0.5144 GB, free: 9.543 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.447e-05/0.8112, allocations: 3.531 kB / 0.5144 GB, free: 9.543 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001186/0.8114, allocations: 3.812 kB / 0.5145 GB, free: 9.543 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.21e-05/0.8114, allocations: 4 kB / 0.5145 GB, free: 9.539 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.264e-06/0.8114, allocations: 4 kB / 0.5145 GB, free: 9.535 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.304e-05/0.8115, allocations: 110.8 kB / 0.5146 GB, free: 9.453 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.3e-07/0.8116, allocations: 0 / 0.5146 GB, free: 9.453 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003972/0.812, allocations: 6.812 kB / 0.5146 GB, free: 9.453 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 0.0001247/0.8121, allocations: 102.8 kB / 0.5147 GB, free: 9.359 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002053/0.8123, allocations: 38.31 kB / 0.5147 GB, free: 9.344 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.8123, allocations: 2.688 kB / 0.5147 GB, free: 9.344 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.479e-05/0.8124, allocations: 11.53 kB / 0.5147 GB, free: 9.34 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005662/0.813, allocations: 34.2 kB / 0.5148 GB, free: 9.328 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005323/0.8135, allocations: 236.1 kB / 0.515 GB, free: 9.105 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001832/0.8137, allocations: 0.6883 MB / 0.5157 GB, free: 8.402 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.008e-05/0.8138, allocations: 14.28 kB / 0.5157 GB, free: 8.398 MB / 330.7 MB Notification: Performance of SimCode: time 4.01e-07/0.8138, allocations: 0 / 0.5157 GB, free: 8.398 MB / 330.7 MB Notification: Performance of Templates: time 0.002993/0.8168, allocations: 0.8099 MB / 0.5165 GB, free: 7.996 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