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.00123/0.00123, allocations: 106.8 kB / 16.62 MB, free: 6.812 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.001361/0.001361, allocations: 189.9 kB / 17.55 MB, free: 5.953 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.458/1.458, allocations: 222.9 MB / 241.2 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 48.42 kB / 300.1 MB, free: 6.207 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1225, allocations: 49.45 MB / 349.6 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003377/0.126, allocations: 1.643 MB / 351.2 MB, free: 3.098 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009254/0.1269, allocations: 498.8 kB / 351.7 MB, free: 2.605 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.127, allocations: 0 / 351.7 MB, free: 2.605 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.582e-05/0.1271, allocations: 3.938 kB / 351.7 MB, free: 2.602 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001588/0.1273, allocations: 15.92 kB / 351.7 MB, free: 2.586 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003505/0.1277, allocations: 46.02 kB / 351.8 MB, free: 2.543 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000123/0.1278, allocations: 47.8 kB / 351.8 MB, free: 2.496 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001177/0.1279, allocations: 16.17 kB / 351.8 MB, free: 2.48 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.968e-05/0.128, allocations: 27.91 kB / 351.9 MB, free: 2.453 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.261e-05/0.1281, allocations: 27.86 kB / 351.9 MB, free: 2.426 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.871e-05/0.1281, allocations: 4 kB / 351.9 MB, free: 2.422 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.462e-05/0.1282, allocations: 4 kB / 351.9 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.673e-05/0.1282, allocations: 15.92 kB / 351.9 MB, free: 2.402 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.983e-05/0.1283, allocations: 27.81 kB / 351.9 MB, free: 2.375 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001299/0.1284, allocations: 55.73 kB / 352 MB, free: 2.32 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.1284, allocations: 0 / 352 MB, free: 2.32 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1284, allocations: 0 / 352 MB, free: 2.32 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.1284, allocations: 0 / 352 MB, free: 2.32 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.0005478/0.129, allocations: 391.3 kB / 352.4 MB, free: 1.891 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.129, allocations: 12.03 kB / 352.4 MB, free: 1.879 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.33e-05/0.1291, allocations: 8.844 kB / 352.4 MB, free: 1.871 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002209/0.1293, allocations: 200.1 kB / 352.6 MB, free: 1.637 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.1293, allocations: 4.375 kB / 352.6 MB, free: 1.633 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.705e-05/0.1294, allocations: 8.375 kB / 352.6 MB, free: 1.625 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003166/0.1297, allocations: 133.9 kB / 352.7 MB, free: 1.473 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.1297, allocations: 0 / 352.7 MB, free: 1.473 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.842e-05/0.1297, allocations: 8 kB / 352.7 MB, free: 1.465 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.1297, allocations: 3.938 kB / 352.7 MB, free: 1.461 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.228e-05/0.1298, allocations: 19.98 kB / 352.8 MB, free: 1.441 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003805/0.1302, allocations: 294.4 kB / 353.1 MB, free: 1.098 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002255/0.1305, allocations: 156.9 kB / 353.2 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.098e-05/0.1305, allocations: 42.62 kB / 353.2 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.252e-05/0.1306, allocations: 0 / 353.2 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.124e-05/0.1306, allocations: 34.56 kB / 353.3 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 9.22e-07/0.1306, allocations: 0 / 353.3 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002955/0.1309, allocations: 93.5 kB / 353.4 MB, free: 0.707 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.798e-05/0.131, allocations: 119 kB / 353.5 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001184/0.1311, allocations: 141.2 kB / 353.6 MB, free: 432 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.457e-05/0.1311, allocations: 25.7 kB / 353.7 MB, free: 400 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.329e-05/0.1312, allocations: 88.14 kB / 353.7 MB, free: 308 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.156e-05/0.1312, allocations: 7.906 kB / 353.7 MB, free: 300 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.043e-05/0.1313, allocations: 25.7 kB / 353.8 MB, free: 268 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.1314, allocations: 318.8 kB / 354.1 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.136e-05/0.1315, allocations: 15.98 kB / 354.1 MB, free: 15.93 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.36e-05/0.1315, allocations: 52.25 kB / 354.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001216/0.1317, allocations: 64.22 kB / 354.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.1317, allocations: 4 kB / 354.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001696/0.1318, allocations: 85.45 kB / 354.3 MB, free: 15.69 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.1319, allocations: 4 kB / 354.3 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.1319, allocations: 0 / 354.3 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.1319, allocations: 4 kB / 354.3 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.161e-05/0.132, allocations: 11.98 kB / 354.3 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.132, allocations: 4.062 kB / 354.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.402e-05/0.1321, allocations: 12 kB / 354.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.06e-05/0.1321, allocations: 4 kB / 354.3 MB, free: 15.65 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.0001047/0.1322, allocations: 129.9 kB / 354.5 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.966e-05/0.1323, allocations: 53.59 kB / 354.5 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.848e-05/0.1323, allocations: 12.25 kB / 354.5 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.1323, allocations: 3.938 kB / 354.5 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1324, allocations: 0 / 354.5 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.1324, allocations: 4 kB / 354.5 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001961/0.1326, allocations: 185.5 kB / 354.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1326, allocations: 4 kB / 354.7 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.273e-05/0.1326, allocations: 15.92 kB / 354.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.1327, allocations: 0 / 354.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.1327, allocations: 0 / 354.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.1327, allocations: 4 kB / 354.7 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1327, allocations: 3.938 kB / 354.7 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000187/0.1329, allocations: 185.1 kB / 354.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.912e-05/0.133, allocations: 100.9 kB / 355 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.055e-05/0.133, allocations: 0 / 355 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.119e-05/0.1331, allocations: 8.062 kB / 355 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.662e-05/0.1331, allocations: 11.92 kB / 355 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.833e-06/0.1331, allocations: 4 kB / 355 MB, free: 14.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.244e-05/0.1332, allocations: 107.2 kB / 355.2 MB, free: 14.72 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1332, allocations: 0 / 355.2 MB, free: 14.72 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002408/0.1335, allocations: 12 kB / 355.2 MB, free: 14.71 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.0001106/0.1336, allocations: 107.2 kB / 355.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001584/0.1337, allocations: 47.91 kB / 355.3 MB, free: 14.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1337, allocations: 0 / 355.3 MB, free: 14.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.556e-05/0.1338, allocations: 11.94 kB / 355.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003879/0.1342, allocations: 28.39 kB / 355.4 MB, free: 14.51 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000382/0.1346, allocations: 205 kB / 355.6 MB, free: 14.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002285/0.1348, allocations: 0.7002 MB / 356.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.857e-05/0.1349, allocations: 4 kB / 356.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.189e-05/0.1349, allocations: 11.38 kB / 356.3 MB, free: 13.53 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1349, allocations: 0 / 356.3 MB, free: 13.53 MB / 302.1 MB Notification: Performance of Templates: time 0.003099/0.138, allocations: 0.6123 MB / 356.9 MB, free: 12.93 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