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.00169/0.00169, allocations: 93.98 kB / 16.3 MB, free: 5.996 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.002137/0.002137, allocations: 184.7 kB / 17.2 MB, free: 5.91 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.542/1.542, allocations: 223.2 MB / 241.1 MB, free: 5.379 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002917/0.0002918, allocations: 10.05 kB / 300.7 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1235, allocations: 50.42 MB / 351.1 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002033/0.1255, allocations: 1.282 MB / 352.4 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008977/0.1265, allocations: 471.1 kB / 352.9 MB, free: 9.941 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000112/0.1266, allocations: 8 kB / 352.9 MB, free: 9.934 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.576e-05/0.1267, allocations: 3.938 kB / 352.9 MB, free: 9.93 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001384/0.1268, allocations: 7.984 kB / 352.9 MB, free: 9.922 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003802/0.1272, allocations: 47.83 kB / 353 MB, free: 9.875 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001137/0.1273, allocations: 27.97 kB / 353 MB, free: 9.848 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001038/0.1274, allocations: 12.44 kB / 353 MB, free: 9.836 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.866e-05/0.1275, allocations: 15.94 kB / 353 MB, free: 9.82 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.424e-05/0.1276, allocations: 23.86 kB / 353 MB, free: 9.797 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.448e-05/0.1276, allocations: 4 kB / 353 MB, free: 9.793 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.695e-05/0.1277, allocations: 4 kB / 353 MB, free: 9.789 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.235e-05/0.1277, allocations: 15.91 kB / 353.1 MB, free: 9.773 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.88e-05/0.1278, allocations: 37.69 kB / 353.1 MB, free: 9.73 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.657e-05/0.1278, allocations: 43.8 kB / 353.1 MB, free: 9.688 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.1279, allocations: 4 kB / 353.1 MB, free: 9.684 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.1279, allocations: 0 / 353.1 MB, free: 9.684 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.1279, allocations: 0 / 353.1 MB, free: 9.684 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.0005537/0.1284, allocations: 371.1 kB / 353.5 MB, free: 9.273 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.1285, allocations: 8.031 kB / 353.5 MB, free: 9.266 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.046e-05/0.1285, allocations: 15.8 kB / 353.5 MB, free: 9.25 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002039/0.1287, allocations: 198.8 kB / 353.7 MB, free: 9.016 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/0.1288, allocations: 0 / 353.7 MB, free: 9.016 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.492e-05/0.1288, allocations: 4 kB / 353.7 MB, free: 9.012 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000294/0.1291, allocations: 137.8 kB / 353.9 MB, free: 8.855 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.1291, allocations: 0 / 353.9 MB, free: 8.855 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.133e-05/0.1291, allocations: 3.953 kB / 353.9 MB, free: 8.852 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.1291, allocations: 0 / 353.9 MB, free: 8.852 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.237e-05/0.1292, allocations: 31.98 kB / 353.9 MB, free: 8.82 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003533/0.1296, allocations: 278.6 kB / 354.2 MB, free: 8.492 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002218/0.1298, allocations: 164.9 kB / 354.3 MB, free: 8.285 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.109e-05/0.1299, allocations: 4 kB / 354.3 MB, free: 8.281 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.162e-05/0.1299, allocations: 34.52 kB / 354.4 MB, free: 8.238 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.142e-06/0.1299, allocations: 0 / 354.4 MB, free: 8.238 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002861/0.1302, allocations: 109.8 kB / 354.5 MB, free: 8.125 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.544e-05/0.1303, allocations: 110.8 kB / 354.6 MB, free: 7.992 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001302/0.1304, allocations: 144.8 kB / 354.7 MB, free: 7.84 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.398e-05/0.1304, allocations: 25.7 kB / 354.7 MB, free: 7.809 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.323e-05/0.1305, allocations: 84.33 kB / 354.8 MB, free: 7.723 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.908e-05/0.1305, allocations: 11.91 kB / 354.8 MB, free: 7.711 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.286e-06/0.1305, allocations: 0 / 354.8 MB, free: 7.711 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.1306, allocations: 318.8 kB / 355.1 MB, free: 7.391 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.305e-05/0.1307, allocations: 28 kB / 355.2 MB, free: 7.363 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.016e-05/0.1307, allocations: 44.28 kB / 355.2 MB, free: 7.305 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.972e-05/0.1308, allocations: 23.94 kB / 355.2 MB, free: 7.281 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1308, allocations: 0 / 355.2 MB, free: 7.281 MB / 286.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001812/0.131, allocations: 89.56 kB / 355.3 MB, free: 7.188 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.131, allocations: 11.92 kB / 355.3 MB, free: 7.176 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.131, allocations: 4 kB / 355.3 MB, free: 7.172 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.1311, allocations: 0 / 355.3 MB, free: 7.172 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.788e-05/0.1312, allocations: 16.06 kB / 355.4 MB, free: 7.156 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.1312, allocations: 4 kB / 355.4 MB, free: 7.152 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.282e-05/0.1312, allocations: 11.92 kB / 355.4 MB, free: 7.141 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.291e-05/0.1312, allocations: 4 kB / 355.4 MB, free: 7.137 MB / 286.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.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 9.214e-05/0.1313, allocations: 113.8 kB / 355.5 MB, free: 7.016 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.667e-05/0.1314, allocations: 69.7 kB / 355.6 MB, free: 6.941 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.764e-05/0.1315, allocations: 12.25 kB / 355.6 MB, free: 6.922 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.1315, allocations: 0 / 355.6 MB, free: 6.922 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.1315, allocations: 3.938 kB / 355.6 MB, free: 6.918 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.1315, allocations: 7.984 kB / 355.6 MB, free: 6.91 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001955/0.1317, allocations: 173.6 kB / 355.8 MB, free: 6.691 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.1317, allocations: 4 kB / 355.8 MB, free: 6.688 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.953e-05/0.1318, allocations: 11.98 kB / 355.8 MB, free: 6.676 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.1318, allocations: 0 / 355.8 MB, free: 6.676 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.131e-05/0.1318, allocations: 3.953 kB / 355.8 MB, free: 6.672 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.1318, allocations: 4 kB / 355.8 MB, free: 6.668 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1318, allocations: 0 / 355.8 MB, free: 6.668 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002383/0.1321, allocations: 216.5 kB / 356 MB, free: 6.422 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.752e-05/0.1322, allocations: 97 kB / 356.1 MB, free: 6.309 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.896e-05/0.1322, allocations: 0 / 356.1 MB, free: 6.309 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.074e-05/0.1323, allocations: 11.98 kB / 356.1 MB, free: 6.297 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.684e-05/0.1323, allocations: 0 / 356.1 MB, free: 6.297 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.752e-06/0.1323, allocations: 4 kB / 356.1 MB, free: 6.293 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.826e-05/0.1324, allocations: 112.8 kB / 356.2 MB, free: 6.184 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1324, allocations: 0 / 356.2 MB, free: 6.184 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002426/0.1327, allocations: 8 kB / 356.2 MB, free: 6.176 MB / 286.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 (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 0.0001096/0.1328, allocations: 99.31 kB / 356.3 MB, free: 6.07 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001675/0.133, allocations: 55.91 kB / 356.4 MB, free: 6.016 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.133, allocations: 0 / 356.4 MB, free: 6.016 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.597e-05/0.133, allocations: 15.94 kB / 356.4 MB, free: 6 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002897/0.1333, allocations: 23.97 kB / 356.4 MB, free: 5.977 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004219/0.1338, allocations: 223.2 kB / 356.6 MB, free: 5.719 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002896/0.1341, allocations: 0.7004 MB / 357.3 MB, free: 4.992 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.323e-05/0.1341, allocations: 192 / 357.3 MB, free: 4.992 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.909e-05/0.1342, allocations: 15.44 kB / 357.3 MB, free: 4.977 MB / 286.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1342, allocations: 0 / 357.3 MB, free: 4.977 MB / 286.1 MB Notification: Performance of Templates: time 0.002976/0.1371, allocations: 0.5436 MB / 357.9 MB, free: 4.445 MB / 286.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","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches