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.001433/0.001433, allocations: 85.05 kB / 21.5 MB, free: 2.992 MB / 18.57 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.001544/0.001544, allocations: 149.7 kB / 24.89 MB, free: 8.742 MB / 18.57 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 0.9288/0.9288, allocations: 173.4 MB / 201.5 MB, free: 8.738 MB / 186.7 MB " [Timeout remaining time 179] 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.323e-06/1.323e-06, allocations: 0 / 268.5 MB, free: 6.016 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.146e-05/2.278e-05, allocations: 2.312 kB / 268.5 MB, free: 6.012 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002769/0.002792, allocations: 1.627 MB / 270.1 MB, free: 4.371 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008634/0.003655, allocations: 490.4 kB / 270.6 MB, free: 3.887 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.406e-05/0.003739, allocations: 11.94 kB / 270.6 MB, free: 3.875 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.366e-05/0.003793, allocations: 7.922 kB / 270.6 MB, free: 3.867 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001351/0.003928, allocations: 11.88 kB / 270.6 MB, free: 3.855 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000269/0.004197, allocations: 55.75 kB / 270.7 MB, free: 3.801 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000114/0.004311, allocations: 55.77 kB / 270.7 MB, free: 3.746 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.715e-05/0.004388, allocations: 12.17 kB / 270.7 MB, free: 3.734 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001055/0.004494, allocations: 35.84 kB / 270.8 MB, free: 3.699 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.087e-05/0.004545, allocations: 11.98 kB / 270.8 MB, free: 3.688 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.13e-05/0.004566, allocations: 4 kB / 270.8 MB, free: 3.684 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.558e-06/0.004576, allocations: 0 / 270.8 MB, free: 3.684 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.648e-05/0.004622, allocations: 27.92 kB / 270.8 MB, free: 3.656 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.758e-05/0.00465, allocations: 15.91 kB / 270.8 MB, free: 3.641 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001097/0.004759, allocations: 43.83 kB / 270.9 MB, free: 3.598 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.004762, allocations: 4 kB / 270.9 MB, free: 3.594 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.004763, allocations: 0 / 270.9 MB, free: 3.594 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.366e-06/0.004766, allocations: 3.938 kB / 270.9 MB, free: 3.59 MB / 250.7 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.0003541/0.00512, allocations: 268.6 kB / 271.2 MB, free: 3.305 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.005156, allocations: 12.92 kB / 271.2 MB, free: 3.293 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.062e-05/0.005197, allocations: 12.92 kB / 271.2 MB, free: 3.281 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001597/0.005356, allocations: 141.6 kB / 271.3 MB, free: 3.117 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.708e-06/0.005366, allocations: 4.375 kB / 271.3 MB, free: 3.113 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.275e-05/0.005379, allocations: 4.375 kB / 271.3 MB, free: 3.109 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004558/0.005834, allocations: 139 kB / 271.5 MB, free: 2.949 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.005842, allocations: 192 / 271.5 MB, free: 2.949 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.506e-06/0.005851, allocations: 4.125 kB / 271.5 MB, free: 2.945 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.239e-06/0.005856, allocations: 0 / 271.5 MB, free: 2.945 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.604e-05/0.005882, allocations: 15.98 kB / 271.5 MB, free: 2.93 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002166/0.006098, allocations: 166 kB / 271.6 MB, free: 2.746 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001287/0.006227, allocations: 71.75 kB / 271.7 MB, free: 2.648 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.828e-05/0.006255, allocations: 22.62 kB / 271.7 MB, free: 2.617 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.649e-05/0.006272, allocations: 4 kB / 271.7 MB, free: 2.613 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.113e-05/0.006293, allocations: 34.56 kB / 271.8 MB, free: 2.57 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 1.022e-06/0.006294, allocations: 0 / 271.8 MB, free: 2.57 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001456/0.00644, allocations: 69.48 kB / 271.8 MB, free: 2.496 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.825e-05/0.006498, allocations: 111.1 kB / 271.9 MB, free: 2.363 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.353e-05/0.006581, allocations: 141.7 kB / 272.1 MB, free: 2.215 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.07e-05/0.006592, allocations: 25.7 kB / 272.1 MB, free: 2.184 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.023e-05/0.006622, allocations: 88.11 kB / 272.2 MB, free: 2.094 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.827e-05/0.006641, allocations: 11.89 kB / 272.2 MB, free: 2.082 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.28e-05/0.006673, allocations: 17.72 kB / 272.2 MB, free: 2.059 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.383e-05/0.006757, allocations: 318.8 kB / 272.5 MB, free: 1.738 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.184e-05/0.006769, allocations: 4 kB / 272.5 MB, free: 1.734 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.682e-05/0.006786, allocations: 13.72 kB / 272.6 MB, free: 1.715 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.63e-05/0.006822, allocations: 29.62 kB / 272.6 MB, free: 1.68 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.006824, allocations: 4 kB / 272.6 MB, free: 1.676 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.377e-05/0.006898, allocations: 49.94 kB / 272.6 MB, free: 1.621 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.006911, allocations: 7.938 kB / 272.6 MB, free: 1.613 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.006917, allocations: 4 kB / 272.6 MB, free: 1.609 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.006929, allocations: 0 / 272.6 MB, free: 1.609 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.371e-05/0.006983, allocations: 7.984 kB / 272.7 MB, free: 1.602 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.926e-06/0.006986, allocations: 0 / 272.7 MB, free: 1.602 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.65e-05/0.007012, allocations: 3.953 kB / 272.7 MB, free: 1.598 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.48e-06/0.007018, allocations: 0 / 272.7 MB, free: 1.598 MB / 250.7 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 7.627e-05/0.007094, allocations: 120.6 kB / 272.8 MB, free: 1.469 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.969e-05/0.007154, allocations: 45.72 kB / 272.8 MB, free: 1.418 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.545e-05/0.007189, allocations: 24.2 kB / 272.8 MB, free: 1.387 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.007192, allocations: 0 / 272.8 MB, free: 1.387 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-06/0.007194, allocations: 0 / 272.8 MB, free: 1.387 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.007197, allocations: 4 kB / 272.8 MB, free: 1.383 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001325/0.007329, allocations: 73.88 kB / 272.9 MB, free: 1.293 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.007331, allocations: 0 / 272.9 MB, free: 1.293 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.038e-05/0.007371, allocations: 12 kB / 272.9 MB, free: 1.281 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.007373, allocations: 0 / 272.9 MB, free: 1.281 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.101e-06/0.007379, allocations: 4 kB / 272.9 MB, free: 1.277 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.007382, allocations: 3.984 kB / 272.9 MB, free: 1.273 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.007385, allocations: 7.938 kB / 272.9 MB, free: 1.266 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.01e-05/0.007475, allocations: 145.2 kB / 273.1 MB, free: 1.102 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.364e-05/0.007509, allocations: 11.95 kB / 273.1 MB, free: 1.09 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.945e-05/0.007528, allocations: 4 kB / 273.1 MB, free: 1.086 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.402e-05/0.007592, allocations: 4 kB / 273.1 MB, free: 1.082 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.483e-05/0.007617, allocations: 11.86 kB / 273.1 MB, free: 1.07 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.242e-06/0.007623, allocations: 8 kB / 273.1 MB, free: 1.062 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.883e-05/0.007652, allocations: 24.83 kB / 273.2 MB, free: 1.035 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007652, allocations: 0 / 273.2 MB, free: 1.035 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002161/0.007868, allocations: 12.03 kB / 273.2 MB, free: 1.023 MB / 250.7 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 8.93e-05/0.007958, allocations: 80.42 kB / 273.2 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 6.907e-05/0.008027, allocations: 24.78 kB / 273.3 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.00803, allocations: 0 / 273.3 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.511e-05/0.008045, allocations: 12.86 kB / 273.3 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002428/0.008288, allocations: 25.36 kB / 273.3 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004474/0.008735, allocations: 199.4 kB / 273.5 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.578e-05/0.008781, allocations: 63.34 kB / 273.6 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.599e-05/0.008807, allocations: 288 / 273.6 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.028e-05/0.008867, allocations: 59.36 kB / 273.6 MB, free: 0.5 MB / 250.7 MB Notification: Performance of SimCode: time 1.162e-06/0.008869, allocations: 0 / 273.6 MB, free: 0.5 MB / 250.7 MB Notification: Performance of Templates: time 0.002712/0.01158, allocations: 0.7028 MB / 274.3 MB, free: 15.82 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.426705590914935]