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.001353/0.001353, allocations: 186.2 kB / 16.45 MB, free: 5.523 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.312/1.312, allocations: 205.4 MB / 222.6 MB, free: 9.121 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.0007277/0.0007277, allocations: 92.86 kB / 270.9 MB, free: 8.363 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.06696/0.06696, allocations: 12.6 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003689/0.0003689, allocations: 20 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07739/0.07778, allocations: 50.37 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample): time 0.001256/0.07908, allocations: 1.262 MB / 443.6 MB, free: 15.19 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005724/0.07967, allocations: 0.4922 MB / 444.1 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.901e-05/0.07975, allocations: 0 / 444.1 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.687e-05/0.07979, allocations: 7.922 kB / 444.1 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001093/0.0799, allocations: 7.938 kB / 444.1 MB, free: 14.67 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002215/0.08013, allocations: 43.89 kB / 444.2 MB, free: 14.63 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.404e-05/0.08021, allocations: 39.86 kB / 444.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.06e-05/0.0803, allocations: 16.16 kB / 444.2 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.51e-05/0.08036, allocations: 19.88 kB / 444.3 MB, free: 14.55 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.016e-05/0.08042, allocations: 19.92 kB / 444.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.997e-05/0.08044, allocations: 0 / 444.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.185e-05/0.08046, allocations: 3.938 kB / 444.3 MB, free: 14.53 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.954e-05/0.0805, allocations: 15.92 kB / 444.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.063e-05/0.08052, allocations: 33.64 kB / 444.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.85e-05/0.08059, allocations: 35.94 kB / 444.4 MB, free: 14.44 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.0806, allocations: 0 / 444.4 MB, free: 14.44 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.0806, allocations: 4 kB / 444.4 MB, free: 14.44 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.08061, allocations: 0 / 444.4 MB, free: 14.44 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003369/0.08095, allocations: 367.3 kB / 444.7 MB, free: 14.03 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.03e-05/0.08099, allocations: 8.031 kB / 444.7 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.068e-05/0.08103, allocations: 7.906 kB / 444.7 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001647/0.0812, allocations: 202.8 kB / 444.9 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.417e-06/0.08122, allocations: 0 / 444.9 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.115e-05/0.08123, allocations: 8 kB / 445 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002189/0.08146, allocations: 117.8 kB / 445.1 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.08148, allocations: 0 / 445.1 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.285e-06/0.08149, allocations: 0 / 445.1 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.88e-06/0.0815, allocations: 4 kB / 445.1 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.988e-05/0.08159, allocations: 31.97 kB / 445.1 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002244/0.08182, allocations: 286.3 kB / 445.4 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.363e-05/0.08191, allocations: 71.78 kB / 445.5 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.352e-05/0.08197, allocations: 30.64 kB / 445.5 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.993e-05/0.082, allocations: 4 kB / 445.5 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.612e-05/0.08202, allocations: 38.55 kB / 445.5 MB, free: 13.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.142e-06/0.08203, allocations: 0 / 445.5 MB, free: 13.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002302/0.08226, allocations: 93.48 kB / 445.6 MB, free: 12.98 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.273e-05/0.08232, allocations: 107.2 kB / 445.7 MB, free: 12.85 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.624e-05/0.08241, allocations: 149.5 kB / 445.9 MB, free: 12.69 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.654e-06/0.08242, allocations: 25.7 kB / 445.9 MB, free: 12.66 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.857e-05/0.08246, allocations: 96.05 kB / 446 MB, free: 12.56 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.107e-05/0.08247, allocations: 0 / 446 MB, free: 12.56 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.055e-06/0.08248, allocations: 0 / 446 MB, free: 12.56 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.857e-05/0.08253, allocations: 322.8 kB / 446.3 MB, free: 12.24 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.058e-05/0.08257, allocations: 4 kB / 446.3 MB, free: 12.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.402e-05/0.08262, allocations: 43.42 kB / 446.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.826e-05/0.08268, allocations: 19.92 kB / 446.4 MB, free: 12.16 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.08269, allocations: 0 / 446.4 MB, free: 12.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001147/0.08281, allocations: 73.53 kB / 446.4 MB, free: 12.08 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/0.08283, allocations: 4 kB / 446.4 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.08284, allocations: 4 kB / 446.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.028e-05/0.08285, allocations: 0 / 446.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.899e-05/0.08292, allocations: 11.98 kB / 446.5 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.08294, allocations: 4 kB / 446.5 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.054e-05/0.08298, allocations: 7.953 kB / 446.5 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.083, allocations: 8.125 kB / 446.5 MB, free: 12.04 MB / 298.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 5.601e-05/0.08306, allocations: 125.5 kB / 446.6 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.11e-05/0.08313, allocations: 49.61 kB / 446.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.648e-05/0.08316, allocations: 15.81 kB / 446.7 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.08317, allocations: 4 kB / 446.7 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.08318, allocations: 0 / 446.7 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.08318, allocations: 0 / 446.7 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001201/0.08331, allocations: 173.6 kB / 446.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.08332, allocations: 0 / 446.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.731e-05/0.08338, allocations: 19.98 kB / 446.9 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.08339, allocations: 0 / 446.9 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-06/0.0834, allocations: 7.938 kB / 446.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.08341, allocations: 0 / 446.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.08341, allocations: 0 / 446.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001395/0.08356, allocations: 185.1 kB / 447 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.713e-05/0.0836, allocations: 97 kB / 447.1 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.482e-05/0.08362, allocations: 0 / 447.1 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.94e-05/0.0837, allocations: 11.92 kB / 447.2 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.906e-05/0.08374, allocations: 144 / 447.2 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.529e-06/0.08375, allocations: 4 kB / 447.2 MB, free: 11.26 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.62e-05/0.0838, allocations: 107.2 kB / 447.3 MB, free: 11.15 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.0838, allocations: 4 kB / 447.3 MB, free: 11.15 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002016/0.08401, allocations: 11.95 kB / 447.3 MB, free: 11.14 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: 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 6.77e-05/0.08408, allocations: 99.19 kB / 447.4 MB, free: 11.03 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001343/0.08422, allocations: 35.91 kB / 447.4 MB, free: 11 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.08423, allocations: 0 / 447.4 MB, free: 11 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.636e-05/0.08428, allocations: 16.23 kB / 447.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003355/0.08462, allocations: 28.02 kB / 447.5 MB, free: 10.95 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002949/0.08492, allocations: 228.4 kB / 447.7 MB, free: 10.69 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001142/0.08505, allocations: 0.6887 MB / 448.4 MB, free: 9.977 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.712e-05/0.08508, allocations: 15.44 kB / 448.4 MB, free: 9.961 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.08509, allocations: 0 / 448.4 MB, free: 9.961 MB / 298.7 MB Notification: Performance of Templates: time 0.001821/0.08691, allocations: 0.8102 MB / 449.2 MB, free: 9.156 MB / 298.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/jenkins/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