Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.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.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001473/0.001473, allocations: 193 kB / 17.38 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.622/1.622, allocations: 226.5 MB / 244.7 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001037/0.001037, allocations: 100.8 kB / 296.8 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000332/0.0003322, allocations: 8 kB / 356.8 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2318/0.2322, allocations: 51.3 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.001323/0.2335, allocations: 1.304 MB / 409.4 MB, free: 26.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006288/0.2342, allocations: 490 kB / 409.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.012e-05/0.2343, allocations: 11.88 kB / 409.8 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.789e-05/0.2343, allocations: 0 / 409.8 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000115/0.2344, allocations: 11.92 kB / 409.9 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002561/0.2347, allocations: 47.88 kB / 409.9 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.545e-05/0.2348, allocations: 44.36 kB / 409.9 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.74e-05/0.2349, allocations: 19.17 kB / 410 MB, free: 25.78 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.088e-05/0.235, allocations: 27.91 kB / 410 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.811e-05/0.235, allocations: 19.86 kB / 410 MB, free: 25.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.332e-05/0.235, allocations: 4 kB / 410 MB, free: 25.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.324e-05/0.2351, allocations: 4 kB / 410 MB, free: 25.73 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.038e-05/0.2351, allocations: 13.67 kB / 410 MB, free: 25.71 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.432e-05/0.2352, allocations: 53.5 kB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.665e-05/0.2352, allocations: 43.92 kB / 410.1 MB, free: 25.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.2352, allocations: 0 / 410.1 MB, free: 25.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2353, allocations: 0 / 410.1 MB, free: 25.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.467e-06/0.2353, allocations: 0.75 kB / 410.1 MB, free: 25.61 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0003469/0.2356, allocations: 365.1 kB / 410.5 MB, free: 25.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.2357, allocations: 8.938 kB / 410.5 MB, free: 25.2 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001352/0.2358, allocations: 21.58 kB / 410.5 MB, free: 25.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/0.2359, allocations: 206.3 kB / 410.7 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.01e-05/0.236, allocations: 9.344 kB / 410.7 MB, free: 24.94 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.558e-06/0.236, allocations: 4.375 kB / 410.7 MB, free: 24.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002292/0.2362, allocations: 134.2 kB / 410.9 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.2362, allocations: 0 / 410.9 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.716e-06/0.2362, allocations: 0 / 410.9 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.2363, allocations: 4 kB / 410.9 MB, free: 24.78 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.377e-05/0.2363, allocations: 35.91 kB / 410.9 MB, free: 24.75 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002449/0.2366, allocations: 274.6 kB / 411.2 MB, free: 24.42 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001582/0.2368, allocations: 168.9 kB / 411.3 MB, free: 24.21 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.606e-05/0.2368, allocations: 42.56 kB / 411.4 MB, free: 24.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.765e-05/0.2369, allocations: 0 / 411.4 MB, free: 24.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.252e-05/0.2369, allocations: 38.56 kB / 411.4 MB, free: 24.11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.032e-06/0.2369, allocations: 0 / 411.4 MB, free: 24.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002473/0.2371, allocations: 101.5 kB / 411.5 MB, free: 24.01 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.667e-05/0.2372, allocations: 106.8 kB / 411.6 MB, free: 23.88 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.698e-05/0.2373, allocations: 142.4 kB / 411.8 MB, free: 23.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.785e-06/0.2373, allocations: 25.7 kB / 411.8 MB, free: 23.7 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.677e-05/0.2373, allocations: 96.06 kB / 411.9 MB, free: 23.6 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.412e-05/0.2373, allocations: 7.906 kB / 411.9 MB, free: 23.59 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.938e-06/0.2374, allocations: 0 / 411.9 MB, free: 23.59 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.015e-05/0.2374, allocations: 322.8 kB / 412.2 MB, free: 23.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.665e-05/0.2375, allocations: 16 kB / 412.2 MB, free: 23.25 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.814e-05/0.2375, allocations: 52.27 kB / 412.3 MB, free: 23.18 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.294e-05/0.2376, allocations: 68.39 kB / 412.3 MB, free: 23.1 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.2376, allocations: 4 kB / 412.3 MB, free: 23.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001397/0.2378, allocations: 93.44 kB / 412.4 MB, free: 23 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.2378, allocations: 8 kB / 412.4 MB, free: 22.99 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.2378, allocations: 0 / 412.4 MB, free: 22.99 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.2378, allocations: 7.938 kB / 412.4 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.757e-05/0.2379, allocations: 12.12 kB / 412.5 MB, free: 22.97 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.882e-06/0.2379, allocations: 0 / 412.5 MB, free: 22.97 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.549e-05/0.238, allocations: 7.984 kB / 412.5 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.586e-06/0.238, allocations: 7.938 kB / 412.5 MB, free: 22.96 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (clockToSquareWave.y2,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 6.213e-05/0.238, allocations: 125.7 kB / 412.6 MB, free: 22.82 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.427e-05/0.2381, allocations: 53.59 kB / 412.6 MB, free: 22.77 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.924e-05/0.2381, allocations: 12.25 kB / 412.7 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.2382, allocations: 3.984 kB / 412.7 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.2382, allocations: 4 kB / 412.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.2382, allocations: 4 kB / 412.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001593/0.2383, allocations: 173.6 kB / 412.8 MB, free: 22.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.2383, allocations: 4 kB / 412.8 MB, free: 22.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.374e-05/0.2384, allocations: 15.92 kB / 412.9 MB, free: 22.49 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.2384, allocations: 0 / 412.9 MB, free: 22.49 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.437e-06/0.2384, allocations: 4 kB / 412.9 MB, free: 22.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.2384, allocations: 0 / 412.9 MB, free: 22.49 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2384, allocations: 0 / 412.9 MB, free: 22.49 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001545/0.2386, allocations: 197.1 kB / 413 MB, free: 22.27 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.971e-05/0.2387, allocations: 89 kB / 413.1 MB, free: 22.17 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.755e-05/0.2387, allocations: 7.984 kB / 413.1 MB, free: 22.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.834e-05/0.2387, allocations: 4 kB / 413.1 MB, free: 22.16 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.94e-05/0.2388, allocations: 4 kB / 413.2 MB, free: 22.15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.428e-06/0.2388, allocations: 7.938 kB / 413.2 MB, free: 22.14 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.61e-05/0.2388, allocations: 110.5 kB / 413.3 MB, free: 22.04 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2389, allocations: 0 / 413.3 MB, free: 22.04 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002142/0.2391, allocations: 12 kB / 413.3 MB, free: 22.03 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: 2 (clockToSquareWave.y,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.53e-05/0.2392, allocations: 107.1 kB / 413.4 MB, free: 21.91 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000138/0.2393, allocations: 52.09 kB / 413.4 MB, free: 21.86 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2393, allocations: 0 / 413.4 MB, free: 21.86 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.768e-05/0.2394, allocations: 8 kB / 413.4 MB, free: 21.86 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003162/0.2397, allocations: 31.95 kB / 413.5 MB, free: 21.82 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002797/0.24, allocations: 244.7 kB / 413.7 MB, free: 21.54 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001175/0.2401, allocations: 0.6926 MB / 414.4 MB, free: 20.82 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.772e-05/0.2401, allocations: 15.42 kB / 414.4 MB, free: 20.8 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.2401, allocations: 0 / 414.4 MB, free: 20.8 MB / 298.7 MB Notification: Performance of Templates: time 0.001678/0.2418, allocations: 0.8576 MB / 415.3 MB, free: 19.95 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches