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.0009271/0.0009274, allocations: 91.39 kB / 16.65 MB, free: 6.594 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.001047/0.001047, allocations: 182.6 kB / 17.56 MB, free: 6.203 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.604/1.604, allocations: 223.3 MB / 241.6 MB, free: 232 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002932/0.0002932, allocations: 11.98 kB / 301.4 MB, free: 6.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1393/0.1396, allocations: 50.41 MB / 351.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002321/0.142, allocations: 1.307 MB / 353.1 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009736/0.143, allocations: 490.8 kB / 353.6 MB, free: 1.934 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001318/0.1431, allocations: 3.938 kB / 353.6 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.182e-05/0.1432, allocations: 0 / 353.6 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001467/0.1433, allocations: 11.88 kB / 353.6 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003219/0.1437, allocations: 47.89 kB / 353.7 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000106/0.1438, allocations: 43.8 kB / 353.7 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001217/0.1439, allocations: 20.16 kB / 353.7 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.401e-05/0.144, allocations: 19.94 kB / 353.8 MB, free: 1.789 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.888e-05/0.1441, allocations: 23.86 kB / 353.8 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.072e-05/0.1441, allocations: 0 / 353.8 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.604e-05/0.1441, allocations: 4 kB / 353.8 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.534e-05/0.1442, allocations: 15.91 kB / 353.8 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.634e-05/0.1443, allocations: 53.5 kB / 353.9 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000118/0.1444, allocations: 63.66 kB / 353.9 MB, free: 1.625 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.1444, allocations: 0 / 353.9 MB, free: 1.625 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1444, allocations: 0 / 353.9 MB, free: 1.625 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.1444, allocations: 0 / 353.9 MB, free: 1.625 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.0005126/0.1449, allocations: 367.5 kB / 354.3 MB, free: 1.219 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.145, allocations: 8.031 kB / 354.3 MB, free: 1.211 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.72e-05/0.145, allocations: 8.844 kB / 354.3 MB, free: 1.203 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002213/0.1452, allocations: 198.9 kB / 354.5 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.094e-05/0.1453, allocations: 4.375 kB / 354.5 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.601e-05/0.1453, allocations: 4.375 kB / 354.5 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003137/0.1456, allocations: 141.9 kB / 354.6 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.1456, allocations: 3.938 kB / 354.6 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.985e-05/0.1457, allocations: 11.97 kB / 354.7 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.1457, allocations: 0 / 354.7 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001068/0.1458, allocations: 27.98 kB / 354.7 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003684/0.1462, allocations: 282.5 kB / 355 MB, free: 440 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002367/0.1464, allocations: 164.8 kB / 355.1 MB, free: 228 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.247e-05/0.1465, allocations: 38.69 kB / 355.2 MB, free: 180 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.177e-05/0.1465, allocations: 3.984 kB / 355.2 MB, free: 176 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.613e-05/0.1466, allocations: 38.56 kB / 355.2 MB, free: 128 kB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.242e-06/0.1466, allocations: 4 kB / 355.2 MB, free: 124 kB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003193/0.1469, allocations: 101.4 kB / 355.3 MB, free: 16 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.121e-05/0.147, allocations: 106.8 kB / 355.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001337/0.1472, allocations: 134.2 kB / 355.5 MB, free: 15.74 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.191e-05/0.1472, allocations: 25.95 kB / 355.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.711e-05/0.1473, allocations: 100.1 kB / 355.7 MB, free: 15.61 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.909e-05/0.1473, allocations: 3.906 kB / 355.7 MB, free: 15.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.107e-05/0.1474, allocations: 17.72 kB / 355.7 MB, free: 15.58 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.1475, allocations: 318.8 kB / 356 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.221e-05/0.1476, allocations: 19.98 kB / 356 MB, free: 15.24 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.794e-05/0.1477, allocations: 48.28 kB / 356.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001672/0.1479, allocations: 68.16 kB / 356.1 MB, free: 15.1 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1479, allocations: 7.938 kB / 356.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002364/0.1481, allocations: 89.52 kB / 356.2 MB, free: 15 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.1482, allocations: 4 kB / 356.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.1482, allocations: 160 / 356.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.1482, allocations: 4 kB / 356.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.1483, allocations: 15.92 kB / 356.2 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.703e-05/0.1483, allocations: 11.98 kB / 356.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.959e-05/0.1484, allocations: 4.125 kB / 356.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.148e-05/0.1484, allocations: 4 kB / 356.3 MB, free: 14.95 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 0.0001553/0.1486, allocations: 133.7 kB / 356.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.1487, allocations: 45.61 kB / 356.4 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.029e-05/0.1488, allocations: 16.52 kB / 356.5 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.1488, allocations: 7.938 kB / 356.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/0.1488, allocations: 0 / 356.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.1488, allocations: 3.984 kB / 356.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000223/0.1491, allocations: 181.5 kB / 356.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1491, allocations: 4 kB / 356.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.861e-05/0.1491, allocations: 8 kB / 356.7 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.1491, allocations: 4 kB / 356.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.1492, allocations: 0 / 356.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.1492, allocations: 3.984 kB / 356.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.1492, allocations: 4 kB / 356.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002241/0.1494, allocations: 197 kB / 356.9 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.523e-05/0.1495, allocations: 96.94 kB / 357 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.064e-05/0.1495, allocations: 4 kB / 357 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.188e-05/0.1496, allocations: 4 kB / 357 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.143e-05/0.1496, allocations: 0 / 357 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.395e-06/0.1497, allocations: 7.984 kB / 357 MB, free: 14.13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.453e-05/0.1497, allocations: 109.8 kB / 357.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1497, allocations: 0 / 357.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002426/0.15, allocations: 15.91 kB / 357.1 MB, free: 14.01 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 0.00014/0.1501, allocations: 99.19 kB / 357.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001759/0.1503, allocations: 51.91 kB / 357.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1503, allocations: 256 / 357.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.143e-05/0.1504, allocations: 23.92 kB / 357.3 MB, free: 13.83 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000412/0.1508, allocations: 24.02 kB / 357.3 MB, free: 13.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004338/0.1513, allocations: 215.1 kB / 357.5 MB, free: 13.56 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002749/0.1516, allocations: 0.6965 MB / 358.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.762e-05/0.1516, allocations: 7.984 kB / 358.2 MB, free: 12.83 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.252e-05/0.1517, allocations: 7.438 kB / 358.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1517, allocations: 3.938 kB / 358.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of Templates: time 0.003112/0.1548, allocations: 0.5798 MB / 358.8 MB, free: 12.25 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins/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