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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 80.67 kB / 20.68 MB, free: 1.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 154.9 kB / 23.94 MB, free: 4.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 173.3 MB / 200.4 MB, free: 12.88 MB / 190.1 MB " [Timeout remaining time 178] 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=5010,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=5010,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.984e-06/1.984e-06, allocations: 0 / 318.9 MB, free: 3.566 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.822e-05/3.021e-05, allocations: 2.281 kB / 318.9 MB, free: 3.562 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002477/0.002507, allocations: 1.586 MB / 320.5 MB, free: 2.488 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008908/0.003398, allocations: 478.7 kB / 321 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.55e-05/0.003493, allocations: 9.188 kB / 321 MB, free: 2.172 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.71e-05/0.00355, allocations: 3.938 kB / 321 MB, free: 2.168 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001455/0.003696, allocations: 10.59 kB / 321 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002986/0.003994, allocations: 54.66 kB / 321.1 MB, free: 2.129 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001109/0.004105, allocations: 49.97 kB / 321.1 MB, free: 2.105 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.865e-05/0.004204, allocations: 15.14 kB / 321.1 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.117e-05/0.004295, allocations: 33.84 kB / 321.2 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.086e-05/0.004356, allocations: 14.41 kB / 321.2 MB, free: 2.078 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.281e-05/0.004379, allocations: 3.844 kB / 321.2 MB, free: 2.078 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.562e-05/0.004394, allocations: 7.375 kB / 321.2 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.26e-05/0.004447, allocations: 19.5 kB / 321.2 MB, free: 2.062 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.292e-05/0.0045, allocations: 14.98 kB / 321.2 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001224/0.004622, allocations: 68.86 kB / 321.3 MB, free: 2.023 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.004626, allocations: 0 / 321.3 MB, free: 2.023 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.004627, allocations: 0 / 321.3 MB, free: 2.023 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.004632, allocations: 0 / 321.3 MB, free: 2.023 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.0003857/0.005017, allocations: 304.6 kB / 321.6 MB, free: 1.73 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.005053, allocations: 10.17 kB / 321.6 MB, free: 1.73 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.115e-05/0.005094, allocations: 13.31 kB / 321.6 MB, free: 1.723 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001992/0.005293, allocations: 146.4 kB / 321.8 MB, free: 1.574 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.005305, allocations: 2.312 kB / 321.8 MB, free: 1.574 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.282e-05/0.005318, allocations: 8.031 kB / 321.8 MB, free: 1.57 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002765/0.005595, allocations: 129.3 kB / 321.9 MB, free: 1.477 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.005607, allocations: 5.438 kB / 321.9 MB, free: 1.473 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.187e-05/0.005619, allocations: 8.125 kB / 321.9 MB, free: 1.465 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.005624, allocations: 5.031 kB / 321.9 MB, free: 1.461 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.086e-05/0.005715, allocations: 26.83 kB / 321.9 MB, free: 1.453 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002514/0.005966, allocations: 215.7 kB / 322.1 MB, free: 1.23 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001815/0.006147, allocations: 83.69 kB / 322.2 MB, free: 1.145 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.851e-05/0.006216, allocations: 38.31 kB / 322.3 MB, free: 1.113 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.371e-05/0.00624, allocations: 5.375 kB / 322.3 MB, free: 1.109 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.812e-05/0.006258, allocations: 38.23 kB / 322.3 MB, free: 1.066 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.183e-06/0.006259, allocations: 0 / 322.3 MB, free: 1.066 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002778/0.006537, allocations: 97.83 kB / 322.4 MB, free: 1.012 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/0.006594, allocations: 113.8 kB / 322.5 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.006707, allocations: 138.6 kB / 322.6 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 9.287e-06/0.006716, allocations: 25.7 kB / 322.7 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.193e-05/0.006748, allocations: 87.55 kB / 322.8 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.179e-05/0.00677, allocations: 13.92 kB / 322.8 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.74e-05/0.006807, allocations: 20.17 kB / 322.8 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 5.078e-05/0.006858, allocations: 318.5 kB / 323.1 MB, free: 308 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.445e-05/0.006912, allocations: 17.95 kB / 323.1 MB, free: 300 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.728e-05/0.006959, allocations: 24.62 kB / 323.1 MB, free: 280 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.333e-05/0.007053, allocations: 37.27 kB / 323.2 MB, free: 256 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.007054, allocations: 0 / 323.2 MB, free: 256 kB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001396/0.007194, allocations: 70.42 kB / 323.2 MB, free: 208 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.007209, allocations: 6.531 kB / 323.3 MB, free: 208 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.007214, allocations: 0 / 323.3 MB, free: 208 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.007231, allocations: 1.188 kB / 323.3 MB, free: 208 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.516e-05/0.007297, allocations: 9.578 kB / 323.3 MB, free: 204 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.007301, allocations: 1.094 kB / 323.3 MB, free: 204 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.211e-05/0.007344, allocations: 3.562 kB / 323.3 MB, free: 204 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.197e-06/0.007353, allocations: 2.109 kB / 323.3 MB, free: 204 kB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 4 * 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 6.054e-05/0.007413, allocations: 125.5 kB / 323.4 MB, free: 76 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.732e-05/0.007491, allocations: 59.52 kB / 323.5 MB, free: 28 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.301e-05/0.007524, allocations: 12.97 kB / 323.5 MB, free: 12 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.007526, allocations: 1.531 kB / 323.5 MB, free: 12 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.007532, allocations: 1.25 kB / 323.5 MB, free: 12 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.007536, allocations: 2.219 kB / 323.5 MB, free: 12 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001938/0.00773, allocations: 126.3 kB / 323.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.007732, allocations: 0 / 323.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.017e-05/0.007792, allocations: 9.938 kB / 323.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.151e-06/0.007798, allocations: 5.156 kB / 323.6 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.097e-06/0.007807, allocations: 1.953 kB / 323.6 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.00781, allocations: 2.141 kB / 323.6 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.007812, allocations: 5.438 kB / 323.6 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002329/0.008045, allocations: 182 kB / 323.8 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.721e-05/0.008092, allocations: 17.86 kB / 323.8 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.614e-05/0.008128, allocations: 4.797 kB / 323.8 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.177e-05/0.00821, allocations: 16.03 kB / 323.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.923e-05/0.008239, allocations: 4.703 kB / 323.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.15e-06/0.008244, allocations: 0.6094 kB / 323.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.566e-05/0.00833, allocations: 109.2 kB / 323.9 MB, free: 15.6 MB / 302.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.00833, allocations: 1 kB / 323.9 MB, free: 15.6 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000237/0.008567, allocations: 6.25 kB / 324 MB, free: 15.6 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.0001342/0.008701, allocations: 105.5 kB / 324.1 MB, free: 15.51 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001677/0.008869, allocations: 30.89 kB / 324.1 MB, free: 15.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.008872, allocations: 5.125 kB / 324.1 MB, free: 15.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.262e-05/0.008924, allocations: 16.86 kB / 324.1 MB, free: 15.49 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003594/0.009284, allocations: 20.36 kB / 324.1 MB, free: 15.49 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000407/0.009691, allocations: 193.9 kB / 324.3 MB, free: 15.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001012/0.009792, allocations: 78.19 kB / 324.4 MB, free: 15.25 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.147e-05/0.009823, allocations: 4.141 kB / 324.4 MB, free: 15.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.708e-05/0.00986, allocations: 20.03 kB / 324.4 MB, free: 15.23 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.009861, allocations: 0 / 324.4 MB, free: 15.23 MB / 302.1 MB Notification: Performance of Templates: time 0.003563/0.01342, allocations: 0.6728 MB / 325.1 MB, free: 15.12 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.186503868550062]