Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001386/0.001386, allocations: 111.7 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001655/0.001655, allocations: 217.9 kB / 19.41 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00114/0.00114, allocations: 63.89 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2474/0.2486, allocations: 50.55 MB / 409.9 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002616/0.2512, allocations: 1.584 MB / 411.5 MB, free: 0 / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009554/0.2522, allocations: 0.5571 MB / 412.1 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.471e-05/0.2523, allocations: 0 / 412.1 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.495e-05/0.2523, allocations: 7.875 kB / 412.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000119/0.2525, allocations: 15.92 kB / 412.1 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002997/0.2528, allocations: 59.8 kB / 412.2 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000102/0.2529, allocations: 51.8 kB / 412.2 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.435e-05/0.253, allocations: 23.97 kB / 412.2 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001124/0.2531, allocations: 35.84 kB / 412.3 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.534e-05/0.2532, allocations: 19.86 kB / 412.3 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.648e-05/0.2532, allocations: 4 kB / 412.3 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.499e-05/0.2532, allocations: 8 kB / 412.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.342e-05/0.2533, allocations: 15.92 kB / 412.3 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.103e-05/0.2533, allocations: 27.75 kB / 412.4 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001374/0.2535, allocations: 71.72 kB / 412.4 MB, free: 15.1 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.2535, allocations: 3.938 kB / 412.4 MB, free: 15.1 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2535, allocations: 0 / 412.4 MB, free: 15.1 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.706e-06/0.2535, allocations: 4 kB / 412.4 MB, free: 15.09 MB / 334.1 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.0004748/0.254, allocations: 380.3 kB / 412.8 MB, free: 14.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.246e-05/0.254, allocations: 8.031 kB / 412.8 MB, free: 14.67 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001461/0.2542, allocations: 20.75 kB / 412.8 MB, free: 14.65 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002287/0.2544, allocations: 206.5 kB / 413 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.038e-05/0.2544, allocations: 4.375 kB / 413 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.299e-05/0.2545, allocations: 4.375 kB / 413 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002734/0.2547, allocations: 138.1 kB / 413.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.2548, allocations: 0 / 413.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.517e-06/0.2548, allocations: 0 / 413.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.824e-06/0.2548, allocations: 4 kB / 413.2 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.561e-05/0.2549, allocations: 35.84 kB / 413.2 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00031/0.2552, allocations: 278.6 kB / 413.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002084/0.2554, allocations: 164.9 kB / 413.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.301e-05/0.2555, allocations: 42.56 kB / 413.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.2556, allocations: 0 / 413.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.068e-05/0.2556, allocations: 34.56 kB / 413.7 MB, free: 13.58 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 9.62e-07/0.2556, allocations: 4 kB / 413.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002688/0.2559, allocations: 93.5 kB / 413.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.47e-05/0.2559, allocations: 110.8 kB / 413.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001222/0.2561, allocations: 141.8 kB / 414.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.323e-05/0.2561, allocations: 25.7 kB / 414.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.602e-05/0.2561, allocations: 92.08 kB / 414.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.767e-05/0.2562, allocations: 12.14 kB / 414.2 MB, free: 13.06 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.929e-05/0.2562, allocations: 29.7 kB / 414.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.2563, allocations: 318.8 kB / 414.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.014e-05/0.2564, allocations: 11.98 kB / 414.5 MB, free: 12.69 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.941e-05/0.2565, allocations: 44.28 kB / 414.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001246/0.2566, allocations: 68.22 kB / 414.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2566, allocations: 0 / 414.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001647/0.2568, allocations: 85.64 kB / 414.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.2568, allocations: 4.125 kB / 414.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.2568, allocations: 8 kB / 414.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.2568, allocations: 4.031 kB / 414.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.08e-05/0.2569, allocations: 11.98 kB / 414.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.2569, allocations: 4 kB / 414.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.756e-05/0.257, allocations: 4 kB / 414.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.026e-05/0.257, allocations: 4 kB / 414.8 MB, free: 12.42 MB / 334.1 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.y,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.42e-05/0.2571, allocations: 133.6 kB / 414.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.753e-05/0.2572, allocations: 49.59 kB / 415 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.715e-05/0.2572, allocations: 16.25 kB / 415 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.2572, allocations: 4 kB / 415 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.2572, allocations: 0 / 415 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.2572, allocations: 0 / 415 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001815/0.2574, allocations: 185.5 kB / 415.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.2574, allocations: 0 / 415.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.764e-05/0.2575, allocations: 11.98 kB / 415.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.638e-06/0.2575, allocations: 7.938 kB / 415.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.124e-06/0.2575, allocations: 3.938 kB / 415.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.2575, allocations: 0 / 415.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2575, allocations: 0 / 415.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001935/0.2577, allocations: 189.1 kB / 415.4 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.377e-05/0.2578, allocations: 93 kB / 415.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.19e-05/0.2578, allocations: 8.062 kB / 415.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.158e-05/0.2579, allocations: 4 kB / 415.5 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.361e-05/0.2579, allocations: 11.98 kB / 415.5 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.138e-06/0.258, allocations: 0 / 415.5 MB, free: 11.6 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.014e-05/0.258, allocations: 113.5 kB / 415.6 MB, free: 11.49 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.258, allocations: 3.938 kB / 415.6 MB, free: 11.49 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000236/0.2583, allocations: 8 kB / 415.6 MB, free: 11.48 MB / 334.1 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 (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.0001105/0.2584, allocations: 103.2 kB / 415.7 MB, free: 11.37 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001631/0.2586, allocations: 51.84 kB / 415.8 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.2586, allocations: 4.25 kB / 415.8 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.152e-05/0.2586, allocations: 8 kB / 415.8 MB, free: 11.31 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000339/0.259, allocations: 35.33 kB / 415.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003455/0.2593, allocations: 214.8 kB / 416 MB, free: 11.03 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002662/0.2596, allocations: 0.6964 MB / 416.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.056e-05/0.2596, allocations: 11.44 kB / 416.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2596, allocations: 0 / 416.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of Templates: time 0.002205/0.2619, allocations: 0.8965 MB / 417.6 MB, free: 9.402 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches