Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001228/0.001227, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009941/0.0009943, allocations: 110.1 kB / 291.2 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009147/0.0009149, allocations: 43.94 kB / 350 MB, free: 52 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2464/0.2474, allocations: 49.44 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.002548/0.25, allocations: 1.6 MB / 401.1 MB, free: 31.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006234/0.2506, allocations: 455.8 kB / 401.5 MB, free: 31.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.312e-05/0.2507, allocations: 4 kB / 401.5 MB, free: 31.31 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.76e-05/0.2508, allocations: 11.92 kB / 401.5 MB, free: 31.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001176/0.2509, allocations: 7.922 kB / 401.6 MB, free: 31.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000206/0.2511, allocations: 39.91 kB / 401.6 MB, free: 31.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.817e-05/0.2512, allocations: 35.86 kB / 401.6 MB, free: 31.22 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.759e-05/0.2513, allocations: 11.98 kB / 401.6 MB, free: 31.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.953e-05/0.2514, allocations: 11.94 kB / 401.6 MB, free: 31.2 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.034e-05/0.2514, allocations: 19.92 kB / 401.7 MB, free: 31.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.813e-05/0.2515, allocations: 3.938 kB / 401.7 MB, free: 31.17 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.08e-05/0.2515, allocations: 4 kB / 401.7 MB, free: 31.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.433e-05/0.2515, allocations: 19.91 kB / 401.7 MB, free: 31.15 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.706e-05/0.2516, allocations: 23.81 kB / 401.7 MB, free: 31.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.817e-05/0.2516, allocations: 43.77 kB / 401.8 MB, free: 31.08 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2516, allocations: 0 / 401.8 MB, free: 31.08 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2517, allocations: 0 / 401.8 MB, free: 31.08 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.2517, allocations: 0 / 401.8 MB, free: 31.08 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003899/0.2521, allocations: 372.8 kB / 402.1 MB, free: 30.67 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.098e-05/0.2521, allocations: 12.03 kB / 402.1 MB, free: 30.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.782e-05/0.2521, allocations: 4.844 kB / 402.1 MB, free: 30.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.2523, allocations: 192.1 kB / 402.3 MB, free: 30.43 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.116e-06/0.2523, allocations: 384 / 402.3 MB, free: 30.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.28e-05/0.2523, allocations: 4.375 kB / 402.3 MB, free: 30.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000194/0.2525, allocations: 97.36 kB / 402.4 MB, free: 30.31 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.2525, allocations: 0 / 402.4 MB, free: 30.31 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.406e-06/0.2525, allocations: 0 / 402.4 MB, free: 30.31 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.2525, allocations: 4 kB / 402.4 MB, free: 30.31 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.41e-05/0.2526, allocations: 23.92 kB / 402.5 MB, free: 30.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002467/0.2529, allocations: 261.8 kB / 402.7 MB, free: 29.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.295e-05/0.2529, allocations: 45.14 kB / 402.8 MB, free: 29.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.212e-05/0.253, allocations: 21.78 kB / 402.8 MB, free: 29.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.253, allocations: 0 / 402.8 MB, free: 29.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.752e-05/0.253, allocations: 34.5 kB / 402.8 MB, free: 29.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 8.91e-07/0.253, allocations: 0 / 402.8 MB, free: 29.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002005/0.2532, allocations: 73.77 kB / 402.9 MB, free: 29.77 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.091e-05/0.2533, allocations: 81.11 kB / 403 MB, free: 29.67 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.624e-05/0.2534, allocations: 140.5 kB / 403.1 MB, free: 29.52 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.346e-06/0.2534, allocations: 25.7 kB / 403.1 MB, free: 29.49 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.748e-05/0.2534, allocations: 88.14 kB / 403.2 MB, free: 29.4 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.282e-05/0.2534, allocations: 3.906 kB / 403.2 MB, free: 29.4 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.653e-05/0.2535, allocations: 17.7 kB / 403.2 MB, free: 29.38 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.896e-05/0.2535, allocations: 318.8 kB / 403.5 MB, free: 29.05 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.387e-05/0.2536, allocations: 8 kB / 403.5 MB, free: 29.05 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.372e-05/0.2536, allocations: 29.64 kB / 403.6 MB, free: 29.01 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.093e-05/0.2537, allocations: 25.7 kB / 403.6 MB, free: 28.98 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.2537, allocations: 4 kB / 403.6 MB, free: 28.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.105e-05/0.2538, allocations: 57.69 kB / 403.7 MB, free: 28.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/0.2538, allocations: 4 kB / 403.7 MB, free: 28.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.2538, allocations: 0 / 403.7 MB, free: 28.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.2538, allocations: 0 / 403.7 MB, free: 28.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.383e-05/0.2539, allocations: 11.98 kB / 403.7 MB, free: 28.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.2539, allocations: 0 / 403.7 MB, free: 28.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.187e-05/0.2539, allocations: 0 / 403.7 MB, free: 28.9 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.135e-06/0.254, allocations: 4 kB / 403.7 MB, free: 28.89 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.651e-05/0.254, allocations: 125.8 kB / 403.8 MB, free: 28.76 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.713e-05/0.2541, allocations: 45.48 kB / 403.9 MB, free: 28.71 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.876e-05/0.2541, allocations: 7.875 kB / 403.9 MB, free: 28.7 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.2541, allocations: 3.984 kB / 403.9 MB, free: 28.7 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.79e-06/0.2541, allocations: 4 kB / 403.9 MB, free: 28.69 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.2541, allocations: 3.984 kB / 403.9 MB, free: 28.69 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001286/0.2543, allocations: 165.6 kB / 404 MB, free: 28.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.2543, allocations: 3.984 kB / 404 MB, free: 28.47 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.746e-05/0.2543, allocations: 4 kB / 404 MB, free: 28.47 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.2543, allocations: 0 / 404 MB, free: 28.47 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.694e-06/0.2543, allocations: 8.031 kB / 404 MB, free: 28.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.2543, allocations: 0 / 404 MB, free: 28.46 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.2544, allocations: 0 / 404 MB, free: 28.46 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003782/0.2547, allocations: 0.7247 MB / 404.8 MB, free: 27.68 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.381e-05/0.2548, allocations: 96.94 kB / 404.9 MB, free: 27.56 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.556e-05/0.2548, allocations: 4 kB / 404.9 MB, free: 27.56 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.036e-05/0.2549, allocations: 4 kB / 404.9 MB, free: 27.55 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.432e-05/0.2549, allocations: 7.922 kB / 404.9 MB, free: 27.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.925e-06/0.2549, allocations: 0 / 404.9 MB, free: 27.55 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.245e-05/0.255, allocations: 103.3 kB / 405 MB, free: 27.45 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.255, allocations: 4 kB / 405 MB, free: 27.44 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002949/0.2553, allocations: 8 kB / 405 MB, free: 27.43 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 (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001169/0.2554, allocations: 103.2 kB / 405.1 MB, free: 27.32 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001201/0.2556, allocations: 23.92 kB / 405.1 MB, free: 27.3 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2556, allocations: 0 / 405.1 MB, free: 27.3 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.39e-05/0.2556, allocations: 8 kB / 405.1 MB, free: 27.29 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004374/0.2561, allocations: 23.95 kB / 405.2 MB, free: 27.27 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000382/0.2564, allocations: 272.2 kB / 405.4 MB, free: 26.96 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001897/0.2566, allocations: 0.6887 MB / 406.1 MB, free: 26.24 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.154e-05/0.2567, allocations: 0 / 406.1 MB, free: 26.24 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.206e-05/0.2567, allocations: 7.438 kB / 406.1 MB, free: 26.23 MB / 298.7 MB Notification: Performance of SimCode: time 1.91e-07/0.2567, allocations: 4 kB / 406.1 MB, free: 26.23 MB / 298.7 MB Notification: Performance of Templates: time 0.002481/0.2592, allocations: 449.7 kB / 406.6 MB, free: 25.8 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleClocked/SampleClocked.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches