Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001374/0.001374, allocations: 196.2 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.382/1.382, allocations: 226.6 MB / 244.3 MB, free: 8.312 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007873/0.0007873, allocations: 105.1 kB / 296.4 MB, free: 7.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002267/0.0002268, allocations: 8 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2495, allocations: 51.3 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.00162/0.2512, allocations: 1.258 MB / 408.8 MB, free: 26.59 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003267/0.2515, allocations: 139.7 kB / 408.9 MB, free: 26.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.085e-05/0.2516, allocations: 9 kB / 408.9 MB, free: 26.44 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.076e-05/0.2517, allocations: 3.984 kB / 408.9 MB, free: 26.44 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001218/0.2518, allocations: 7.922 kB / 408.9 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002198/0.252, allocations: 24.52 kB / 408.9 MB, free: 26.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.66e-05/0.2521, allocations: 33.83 kB / 409 MB, free: 26.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.116e-05/0.2522, allocations: 11.97 kB / 409 MB, free: 26.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.962e-05/0.2522, allocations: 11.94 kB / 409 MB, free: 26.35 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.126e-05/0.2523, allocations: 7.938 kB / 409 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.664e-05/0.2523, allocations: 4.531 kB / 409 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.127e-05/0.2523, allocations: 2.781 kB / 409 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.414e-05/0.2524, allocations: 15.92 kB / 409 MB, free: 26.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.087e-05/0.2524, allocations: 29.7 kB / 409.1 MB, free: 26.29 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.201e-05/0.2525, allocations: 35.92 kB / 409.1 MB, free: 26.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.2525, allocations: 0 / 409.1 MB, free: 26.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2525, allocations: 3.938 kB / 409.1 MB, free: 26.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.2525, allocations: 0 / 409.1 MB, free: 26.25 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003658/0.2529, allocations: 357.2 kB / 409.4 MB, free: 25.86 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.2529, allocations: 15.97 kB / 409.5 MB, free: 25.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.375e-05/0.253, allocations: 8.75 kB / 409.5 MB, free: 25.83 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001429/0.2531, allocations: 183.8 kB / 409.6 MB, free: 25.61 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.042e-05/0.2531, allocations: 1.281 kB / 409.6 MB, free: 25.61 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.026e-05/0.2531, allocations: 8 kB / 409.7 MB, free: 25.61 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000244/0.2534, allocations: 126.1 kB / 409.8 MB, free: 25.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.2534, allocations: 0 / 409.8 MB, free: 25.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-06/0.2534, allocations: 0 / 409.8 MB, free: 25.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.2534, allocations: 0 / 409.8 MB, free: 25.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.446e-05/0.2535, allocations: 31.91 kB / 409.8 MB, free: 25.43 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002634/0.2538, allocations: 261.8 kB / 410.1 MB, free: 25.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001629/0.254, allocations: 138.2 kB / 410.2 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.874e-05/0.254, allocations: 33.77 kB / 410.2 MB, free: 24.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.736e-05/0.2541, allocations: 0 / 410.2 MB, free: 24.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.263e-05/0.2541, allocations: 34.56 kB / 410.3 MB, free: 24.87 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.2541, allocations: 0 / 410.3 MB, free: 24.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002169/0.2543, allocations: 81.52 kB / 410.3 MB, free: 24.79 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.786e-05/0.2543, allocations: 89.22 kB / 410.4 MB, free: 24.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.473e-05/0.2544, allocations: 133.1 kB / 410.6 MB, free: 24.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.127e-06/0.2545, allocations: 33.7 kB / 410.6 MB, free: 24.5 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.387e-05/0.2545, allocations: 80.14 kB / 410.7 MB, free: 24.42 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.25e-05/0.2545, allocations: 7.906 kB / 410.7 MB, free: 24.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.406e-06/0.2545, allocations: 0 / 410.7 MB, free: 24.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.731e-05/0.2546, allocations: 322.8 kB / 411 MB, free: 24.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.991e-05/0.2546, allocations: 12 kB / 411 MB, free: 24.07 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.829e-05/0.2547, allocations: 35.42 kB / 411 MB, free: 24.03 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.99e-05/0.2547, allocations: 12 kB / 411.1 MB, free: 24.02 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2548, allocations: 7.953 kB / 411.1 MB, free: 24.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001048/0.2549, allocations: 69.55 kB / 411.1 MB, free: 23.93 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.2549, allocations: 8 kB / 411.1 MB, free: 23.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.2549, allocations: 0 / 411.1 MB, free: 23.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.2549, allocations: 0 / 411.1 MB, free: 23.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.449e-05/0.255, allocations: 11.98 kB / 411.2 MB, free: 23.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5e-06/0.255, allocations: 4 kB / 411.2 MB, free: 23.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.102e-05/0.255, allocations: 8.125 kB / 411.2 MB, free: 23.9 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.511e-06/0.255, allocations: 0 / 411.2 MB, free: 23.9 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.142e-05/0.2551, allocations: 117.8 kB / 411.3 MB, free: 23.78 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.534e-05/0.2551, allocations: 57.48 kB / 411.3 MB, free: 23.71 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.977e-05/0.2552, allocations: 12.25 kB / 411.3 MB, free: 23.69 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.2552, allocations: 4 kB / 411.3 MB, free: 23.69 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.2552, allocations: 3.984 kB / 411.4 MB, free: 23.68 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.2552, allocations: 4 kB / 411.4 MB, free: 23.68 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001178/0.2553, allocations: 173.6 kB / 411.5 MB, free: 23.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.2553, allocations: 0 / 411.5 MB, free: 23.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.312e-05/0.2554, allocations: 11.95 kB / 411.5 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.2554, allocations: 0 / 411.5 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.2554, allocations: 4 kB / 411.5 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.2554, allocations: 0 / 411.5 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2554, allocations: 0 / 411.5 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001274/0.2556, allocations: 172.6 kB / 411.7 MB, free: 23.26 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.544e-05/0.2556, allocations: 97 kB / 411.8 MB, free: 23.14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.291e-05/0.2556, allocations: 3.953 kB / 411.8 MB, free: 23.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.535e-05/0.2557, allocations: 4 kB / 411.8 MB, free: 23.14 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.358e-05/0.2557, allocations: 8.016 kB / 411.8 MB, free: 23.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.557e-06/0.2557, allocations: 0 / 411.8 MB, free: 23.13 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.602e-05/0.2558, allocations: 103.3 kB / 411.9 MB, free: 23.03 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2558, allocations: 4 kB / 411.9 MB, free: 23.02 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000196/0.256, allocations: 4 kB / 411.9 MB, free: 23.02 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.25e-05/0.2561, allocations: 99.25 kB / 412 MB, free: 22.91 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000124/0.2562, allocations: 39.84 kB / 412.1 MB, free: 22.88 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2562, allocations: 0 / 412.1 MB, free: 22.88 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.263e-05/0.2562, allocations: 12.25 kB / 412.1 MB, free: 22.86 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003184/0.2566, allocations: 22.25 kB / 412.1 MB, free: 22.84 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002741/0.2569, allocations: 195.1 kB / 412.3 MB, free: 22.61 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001485/0.257, allocations: 0.6927 MB / 413 MB, free: 21.89 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.203e-05/0.257, allocations: 7.438 kB / 413 MB, free: 21.89 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.257, allocations: 0 / 413 MB, free: 21.89 MB / 298.7 MB Notification: Performance of Templates: time 0.00169/0.2587, allocations: 0.6718 MB / 413.7 MB, free: 21.21 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches