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.001182/0.001182, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001185/0.001185, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.427/1.427, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 52.3 kB / 301.3 MB, free: 5.855 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1319, allocations: 49.44 MB / 350.7 MB, free: 4.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003115/0.135, allocations: 1.59 MB / 352.3 MB, free: 2.805 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009156/0.136, allocations: 0.4948 MB / 352.8 MB, free: 2.305 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.1361, allocations: 0 / 352.8 MB, free: 2.305 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.531e-05/0.1361, allocations: 11.86 kB / 352.8 MB, free: 2.293 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000136/0.1363, allocations: 7.938 kB / 352.8 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003185/0.1366, allocations: 59.75 kB / 352.9 MB, free: 2.227 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001235/0.1368, allocations: 51.78 kB / 352.9 MB, free: 2.176 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001123/0.1369, allocations: 12.19 kB / 352.9 MB, free: 2.164 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.563e-05/0.137, allocations: 27.91 kB / 353 MB, free: 2.137 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.499e-05/0.137, allocations: 23.86 kB / 353 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.941e-05/0.1371, allocations: 4 kB / 353 MB, free: 2.109 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.432e-05/0.1371, allocations: 4 kB / 353 MB, free: 2.105 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.349e-05/0.1371, allocations: 15.92 kB / 353 MB, free: 2.09 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.869e-05/0.1372, allocations: 27.81 kB / 353.1 MB, free: 2.062 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001343/0.1373, allocations: 67.72 kB / 353.1 MB, free: 1.996 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1374, allocations: 3.938 kB / 353.1 MB, free: 1.992 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1374, allocations: 0 / 353.1 MB, free: 1.992 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.219e-06/0.1374, allocations: 0 / 353.1 MB, free: 1.992 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.0005393/0.1379, allocations: 379.3 kB / 353.5 MB, free: 1.574 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.138, allocations: 11.89 kB / 353.5 MB, free: 1.562 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.944e-05/0.138, allocations: 12.83 kB / 353.5 MB, free: 1.551 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002197/0.1382, allocations: 196.1 kB / 353.7 MB, free: 1.32 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.261e-05/0.1382, allocations: 8.375 kB / 353.7 MB, free: 1.312 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.769e-05/0.1383, allocations: 4.375 kB / 353.7 MB, free: 1.309 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003121/0.1386, allocations: 137.9 kB / 353.9 MB, free: 1.152 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.1386, allocations: 3.938 kB / 353.9 MB, free: 1.148 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.038e-05/0.1386, allocations: 4 kB / 353.9 MB, free: 1.145 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.391e-06/0.1386, allocations: 0 / 353.9 MB, free: 1.145 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.849e-05/0.1387, allocations: 23.98 kB / 353.9 MB, free: 1.121 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000395/0.1391, allocations: 286.5 kB / 354.2 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002371/0.1394, allocations: 160.8 kB / 354.3 MB, free: 0.582 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.351e-05/0.1395, allocations: 42.69 kB / 354.4 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.159e-05/0.1395, allocations: 0 / 354.4 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.836e-05/0.1395, allocations: 42.55 kB / 354.4 MB, free: 492 kB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 9.92e-07/0.1395, allocations: 0 / 354.4 MB, free: 492 kB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003244/0.1399, allocations: 93.45 kB / 354.5 MB, free: 392 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.052e-05/0.14, allocations: 110.8 kB / 354.6 MB, free: 256 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.1401, allocations: 144.9 kB / 354.7 MB, free: 104 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.544e-05/0.1401, allocations: 25.7 kB / 354.8 MB, free: 72 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.155e-05/0.1402, allocations: 92.39 kB / 354.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.12e-05/0.1402, allocations: 11.89 kB / 354.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.752e-05/0.1403, allocations: 17.72 kB / 354.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.1404, allocations: 326.8 kB / 355.2 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.146e-05/0.1405, allocations: 12 kB / 355.2 MB, free: 15.6 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.148e-05/0.1405, allocations: 40.28 kB / 355.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001165/0.1407, allocations: 68.22 kB / 355.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1407, allocations: 3.938 kB / 355.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001814/0.1409, allocations: 89.5 kB / 355.4 MB, free: 15.37 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.1409, allocations: 8 kB / 355.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.1409, allocations: 0 / 355.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.1409, allocations: 0 / 355.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.025e-05/0.141, allocations: 15.94 kB / 355.4 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.916e-06/0.141, allocations: 4 kB / 355.4 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.943e-05/0.1411, allocations: 7.984 kB / 355.5 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.075e-06/0.1411, allocations: 0 / 355.5 MB, free: 15.33 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 8.797e-05/0.1412, allocations: 125.8 kB / 355.6 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.847e-05/0.1413, allocations: 57.59 kB / 355.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.762e-05/0.1413, allocations: 12.25 kB / 355.6 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.67e-06/0.1413, allocations: 4 kB / 355.6 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.1414, allocations: 7.922 kB / 355.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.1414, allocations: 0 / 355.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001986/0.1416, allocations: 185.4 kB / 355.8 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1416, allocations: 0 / 355.8 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.737e-05/0.1416, allocations: 11.98 kB / 355.8 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/0.1417, allocations: 4 kB / 355.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.544e-06/0.1417, allocations: 0 / 355.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1417, allocations: 4 kB / 355.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.1417, allocations: 0 / 355.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002225/0.1419, allocations: 193.3 kB / 356 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.398e-05/0.142, allocations: 96.92 kB / 356.1 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.683e-05/0.142, allocations: 11.98 kB / 356.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.818e-05/0.1421, allocations: 4 kB / 356.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.587e-05/0.1421, allocations: 4 kB / 356.2 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.197e-06/0.1422, allocations: 0 / 356.2 MB, free: 14.51 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.438e-05/0.1422, allocations: 111.2 kB / 356.3 MB, free: 14.4 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1423, allocations: 4 kB / 356.3 MB, free: 14.4 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002356/0.1425, allocations: 8 kB / 356.3 MB, free: 14.39 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.0001367/0.1426, allocations: 103.2 kB / 356.4 MB, free: 14.28 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001856/0.1428, allocations: 55.91 kB / 356.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1428, allocations: 0 / 356.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.622e-05/0.1429, allocations: 11.94 kB / 356.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004289/0.1433, allocations: 24.02 kB / 356.5 MB, free: 14.19 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004061/0.1438, allocations: 223 kB / 356.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002995/0.1441, allocations: 0.6924 MB / 357.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.545e-05/0.1441, allocations: 15.44 kB / 357.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1441, allocations: 0 / 357.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of Templates: time 0.002679/0.1468, allocations: 0.8551 MB / 358.3 MB, free: 12.35 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