Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|superSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|superSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001086/0.001087, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, allocations: 226.6 MB / 244.3 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008359/0.0008361, allocations: 90 kB / 296.4 MB, free: 6.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002253/0.0002253, allocations: 8 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2418/0.2421, allocations: 51.29 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample): time 0.001508/0.2436, allocations: 1.284 MB / 408.8 MB, free: 26.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006996/0.2444, allocations: 0.5138 MB / 409.3 MB, free: 26.03 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.881e-05/0.2444, allocations: 0 / 409.3 MB, free: 26.03 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.151e-05/0.2445, allocations: 7.922 kB / 409.3 MB, free: 26.02 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000126/0.2446, allocations: 7.938 kB / 409.3 MB, free: 26.01 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002846/0.2449, allocations: 56.19 kB / 409.4 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.253e-05/0.245, allocations: 43.8 kB / 409.4 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001018/0.2451, allocations: 9.391 kB / 409.4 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001089/0.2452, allocations: 29.23 kB / 409.4 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.132e-05/0.2453, allocations: 15.92 kB / 409.5 MB, free: 25.87 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.315e-05/0.2453, allocations: 4 kB / 409.5 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.012e-05/0.2454, allocations: 4.5 kB / 409.5 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.953e-05/0.2454, allocations: 13.86 kB / 409.5 MB, free: 25.85 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.982e-05/0.2454, allocations: 37.64 kB / 409.5 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.363e-05/0.2455, allocations: 35.92 kB / 409.6 MB, free: 25.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.2455, allocations: 4 kB / 409.6 MB, free: 25.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2455, allocations: 0 / 409.6 MB, free: 25.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.2455, allocations: 0 / 409.6 MB, free: 25.77 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.0003875/0.2459, allocations: 366 kB / 409.9 MB, free: 25.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.246, allocations: 8.031 kB / 409.9 MB, free: 25.36 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001341/0.2461, allocations: 25.02 kB / 409.9 MB, free: 25.33 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001586/0.2463, allocations: 189.1 kB / 410.1 MB, free: 25.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/0.2463, allocations: 14.02 kB / 410.1 MB, free: 25.1 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.334e-05/0.2463, allocations: 7.938 kB / 410.2 MB, free: 25.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002413/0.2466, allocations: 121.2 kB / 410.3 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.2466, allocations: 3.938 kB / 410.3 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.989e-06/0.2466, allocations: 4 kB / 410.3 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.2466, allocations: 0 / 410.3 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.084e-05/0.2467, allocations: 26.08 kB / 410.3 MB, free: 24.92 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002626/0.247, allocations: 282.5 kB / 410.6 MB, free: 24.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.568e-05/0.2471, allocations: 63.8 kB / 410.6 MB, free: 24.5 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.636e-05/0.2471, allocations: 34.62 kB / 410.7 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.194e-05/0.2472, allocations: 7.984 kB / 410.7 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.53e-05/0.2472, allocations: 38.56 kB / 410.7 MB, free: 24.4 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.263e-06/0.2472, allocations: 0 / 410.7 MB, free: 24.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002485/0.2474, allocations: 97.78 kB / 410.8 MB, free: 24.3 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.738e-05/0.2475, allocations: 102.8 kB / 410.9 MB, free: 24.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.748e-05/0.2476, allocations: 141.8 kB / 411.1 MB, free: 24.03 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.074e-05/0.2476, allocations: 25.7 kB / 411.1 MB, free: 24 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.137e-05/0.2476, allocations: 92.12 kB / 411.2 MB, free: 23.9 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.243e-05/0.2477, allocations: 3.906 kB / 411.2 MB, free: 23.9 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.346e-06/0.2477, allocations: 0 / 411.2 MB, free: 23.9 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.778e-05/0.2477, allocations: 322.8 kB / 411.5 MB, free: 23.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.108e-05/0.2478, allocations: 11.98 kB / 411.5 MB, free: 23.56 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.244e-05/0.2478, allocations: 39.42 kB / 411.5 MB, free: 23.51 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.62e-05/0.2479, allocations: 19.94 kB / 411.6 MB, free: 23.49 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2479, allocations: 0 / 411.6 MB, free: 23.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001168/0.248, allocations: 69.61 kB / 411.6 MB, free: 23.42 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.248, allocations: 4 kB / 411.6 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.248, allocations: 0 / 411.6 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.2481, allocations: 4 kB / 411.6 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.395e-05/0.2481, allocations: 16.2 kB / 411.7 MB, free: 23.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.2481, allocations: 0 / 411.7 MB, free: 23.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.259e-05/0.2482, allocations: 15.84 kB / 411.7 MB, free: 23.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.576e-06/0.2482, allocations: 7.984 kB / 411.7 MB, free: 23.37 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.786e-05/0.2483, allocations: 125.7 kB / 411.8 MB, free: 23.24 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.148e-05/0.2483, allocations: 45.61 kB / 411.8 MB, free: 23.19 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.195e-05/0.2484, allocations: 15.86 kB / 411.9 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.2484, allocations: 7.938 kB / 411.9 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.2484, allocations: 4.062 kB / 411.9 MB, free: 23.15 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.2484, allocations: 0 / 411.9 MB, free: 23.15 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001275/0.2485, allocations: 173.6 kB / 412 MB, free: 22.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.2485, allocations: 0 / 412 MB, free: 22.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.728e-05/0.2486, allocations: 15.92 kB / 412.1 MB, free: 22.92 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.2486, allocations: 0 / 412.1 MB, free: 22.92 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.2486, allocations: 7.938 kB / 412.1 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.2486, allocations: 0 / 412.1 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2486, allocations: 0 / 412.1 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001403/0.2488, allocations: 181.1 kB / 412.2 MB, free: 22.71 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.771e-05/0.2488, allocations: 93 kB / 412.3 MB, free: 22.6 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.543e-05/0.2489, allocations: 4 kB / 412.3 MB, free: 22.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.957e-05/0.2489, allocations: 4 kB / 412.3 MB, free: 22.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.221e-05/0.249, allocations: 11.92 kB / 412.4 MB, free: 22.58 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.499e-06/0.249, allocations: 4 kB / 412.4 MB, free: 22.58 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.97e-05/0.249, allocations: 114.5 kB / 412.5 MB, free: 22.47 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.249, allocations: 0 / 412.5 MB, free: 22.47 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002008/0.2492, allocations: 4 kB / 412.5 MB, free: 22.46 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 8.734e-05/0.2493, allocations: 99.23 kB / 412.6 MB, free: 22.36 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001422/0.2495, allocations: 39.92 kB / 412.6 MB, free: 22.32 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2495, allocations: 0 / 412.6 MB, free: 22.32 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.875e-05/0.2495, allocations: 15.98 kB / 412.6 MB, free: 22.3 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003447/0.2499, allocations: 22.28 kB / 412.6 MB, free: 22.29 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002989/0.2502, allocations: 232.7 kB / 412.9 MB, free: 22.02 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001203/0.2503, allocations: 0.6926 MB / 413.6 MB, free: 21.3 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.741e-05/0.2504, allocations: 15.38 kB / 413.6 MB, free: 21.28 MB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.2504, allocations: 0 / 413.6 MB, free: 21.28 MB / 298.7 MB Notification: Performance of Templates: time 0.00185/0.2522, allocations: 0.8019 MB / 414.4 MB, free: 20.48 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SuperSample/SuperSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches