Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008948/0.0008948, allocations: 92.2 kB / 17.31 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 175.8 kB / 18.21 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 223.3 MB / 242.3 MB, free: 14.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002299/0.0002299, allocations: 11.94 kB / 302.1 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07455/0.07479, allocations: 50.41 MB / 352.5 MB, free: 3.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.001609/0.07643, allocations: 1.3 MB / 353.8 MB, free: 2.129 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008102/0.07726, allocations: 486.8 kB / 354.3 MB, free: 1.648 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00014/0.07742, allocations: 3.938 kB / 354.3 MB, free: 1.645 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.962e-05/0.07746, allocations: 4 kB / 354.3 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001097/0.07757, allocations: 7.938 kB / 354.3 MB, free: 1.633 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000266/0.07785, allocations: 59.2 kB / 354.3 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.921e-05/0.07795, allocations: 47.8 kB / 354.4 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.776e-05/0.07804, allocations: 16.14 kB / 354.4 MB, free: 1.516 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.262e-05/0.07811, allocations: 19.92 kB / 354.4 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.233e-05/0.07818, allocations: 19.88 kB / 354.4 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.429e-05/0.0782, allocations: 0 / 354.4 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.354e-05/0.07822, allocations: 4 kB / 354.5 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.501e-05/0.07827, allocations: 15.91 kB / 354.5 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.141e-05/0.07833, allocations: 57.5 kB / 354.5 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.321e-05/0.07841, allocations: 39.92 kB / 354.6 MB, free: 1.355 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.07842, allocations: 3.938 kB / 354.6 MB, free: 1.352 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.07842, allocations: 0 / 354.6 MB, free: 1.352 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.07843, allocations: 0 / 354.6 MB, free: 1.352 MB / 286.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.0003978/0.07884, allocations: 371.4 kB / 354.9 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.07888, allocations: 12.03 kB / 354.9 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.336e-05/0.07892, allocations: 8.844 kB / 355 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001647/0.07909, allocations: 194.9 kB / 355.1 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.087e-05/0.07911, allocations: 4.375 kB / 355.1 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.431e-05/0.07913, allocations: 8.375 kB / 355.2 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002716/0.0794, allocations: 141.9 kB / 355.3 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.872e-06/0.07942, allocations: 0 / 355.3 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.717e-06/0.07944, allocations: 0 / 355.3 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.087e-06/0.07944, allocations: 0 / 355.3 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.51e-05/0.07954, allocations: 31.97 kB / 355.3 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003236/0.07987, allocations: 282.5 kB / 355.6 MB, free: 164 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002192/0.08011, allocations: 164.9 kB / 355.8 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.603e-05/0.08019, allocations: 34.58 kB / 355.8 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.229e-05/0.08022, allocations: 7.984 kB / 355.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.014e-05/0.08025, allocations: 30.56 kB / 355.8 MB, free: 15.86 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.262e-06/0.08026, allocations: 3.938 kB / 355.8 MB, free: 15.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002883/0.08055, allocations: 109.6 kB / 355.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.912e-05/0.08062, allocations: 106.8 kB / 356 MB, free: 15.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001151/0.08074, allocations: 138.2 kB / 356.2 MB, free: 15.47 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.375e-05/0.08076, allocations: 25.7 kB / 356.2 MB, free: 15.44 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.331e-05/0.08081, allocations: 96.11 kB / 356.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.844e-05/0.08084, allocations: 7.906 kB / 356.3 MB, free: 15.33 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.324e-05/0.08086, allocations: 13.66 kB / 356.3 MB, free: 15.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.08098, allocations: 330.8 kB / 356.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.317e-05/0.08104, allocations: 12 kB / 356.7 MB, free: 14.97 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.446e-05/0.08111, allocations: 48.27 kB / 356.7 MB, free: 14.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001272/0.08125, allocations: 68.22 kB / 356.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.08126, allocations: 3.938 kB / 356.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001755/0.08144, allocations: 101.8 kB / 356.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.08146, allocations: 8 kB / 356.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.08147, allocations: 0 / 356.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.002e-05/0.08148, allocations: 0 / 356.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.333e-05/0.08156, allocations: 15.94 kB / 356.9 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.533e-06/0.08158, allocations: 3.984 kB / 356.9 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.997e-05/0.08163, allocations: 4 kB / 356.9 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.337e-06/0.08165, allocations: 4 kB / 356.9 MB, free: 14.68 MB / 302.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.136e-05/0.08174, allocations: 125.7 kB / 357 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.029e-05/0.08183, allocations: 57.62 kB / 357.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.947e-05/0.08188, allocations: 16.23 kB / 357.1 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.08189, allocations: 0 / 357.1 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.0819, allocations: 3.938 kB / 357.1 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.08191, allocations: 4 kB / 357.1 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001837/0.0821, allocations: 177.6 kB / 357.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.08211, allocations: 0 / 357.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.292e-05/0.08218, allocations: 11.98 kB / 357.3 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.0822, allocations: 0 / 357.3 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.08221, allocations: 4 kB / 357.3 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.08222, allocations: 4 kB / 357.3 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.08222, allocations: 0 / 357.3 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002015/0.08243, allocations: 193 kB / 357.5 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.247e-05/0.0825, allocations: 104.9 kB / 357.6 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.68e-05/0.08253, allocations: 4 kB / 357.6 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.55e-05/0.08261, allocations: 4 kB / 357.6 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.268e-05/0.08264, allocations: 3.938 kB / 357.6 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.14e-06/0.08265, allocations: 4 kB / 357.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.56e-05/0.08272, allocations: 109.8 kB / 357.7 MB, free: 13.76 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.08273, allocations: 0 / 357.7 MB, free: 13.76 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002475/0.08298, allocations: 15.91 kB / 357.7 MB, free: 13.74 MB / 302.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 8.944e-05/0.08308, allocations: 111.1 kB / 357.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001512/0.08323, allocations: 47.91 kB / 357.9 MB, free: 13.58 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.08325, allocations: 0 / 357.9 MB, free: 13.58 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.824e-05/0.0833, allocations: 15.94 kB / 357.9 MB, free: 13.56 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003493/0.08366, allocations: 24.02 kB / 357.9 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003473/0.08402, allocations: 245.1 kB / 358.2 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002207/0.08425, allocations: 0.6956 MB / 358.9 MB, free: 12.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.973e-05/0.08429, allocations: 23.36 kB / 358.9 MB, free: 12.51 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.08429, allocations: 4 kB / 358.9 MB, free: 12.51 MB / 302.1 MB Notification: Performance of Templates: time 0.002061/0.08636, allocations: 0.8401 MB / 359.7 MB, free: 11.67 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches