Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 83.59 kB / 21.18 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 165 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9831/0.9831, allocations: 177.1 MB / 205 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 273 MB, free: 1.555 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.79e-05/2.949e-05, allocations: 2.312 kB / 273 MB, free: 1.551 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002284/0.002313, allocations: 1.658 MB / 274.6 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008292/0.003143, allocations: 0.5489 MB / 275.2 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.104e-05/0.003224, allocations: 3.938 kB / 275.2 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.816e-05/0.003272, allocations: 7.938 kB / 275.2 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000141/0.003413, allocations: 15.92 kB / 275.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003247/0.003737, allocations: 63.69 kB / 275.3 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001013/0.003839, allocations: 55.83 kB / 275.3 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.37e-05/0.003932, allocations: 8 kB / 275.3 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001328/0.004065, allocations: 35.91 kB / 275.4 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.93e-05/0.004115, allocations: 19.91 kB / 275.4 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.56e-05/0.00413, allocations: 0 / 275.4 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.756e-05/0.004168, allocations: 15.94 kB / 275.4 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.317e-05/0.004211, allocations: 19.92 kB / 275.4 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.465e-05/0.004246, allocations: 23.91 kB / 275.5 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001259/0.004371, allocations: 47.77 kB / 275.5 MB, free: 15.02 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.345e-06/0.004374, allocations: 0 / 275.5 MB, free: 15.02 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.004375, allocations: 0 / 275.5 MB, free: 15.02 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.004379, allocations: 0 / 275.5 MB, free: 15.02 MB / 266.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.0004154/0.004795, allocations: 412.2 kB / 275.9 MB, free: 14.58 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.004834, allocations: 8.031 kB / 275.9 MB, free: 14.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001398/0.004974, allocations: 16.89 kB / 275.9 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001821/0.005156, allocations: 160.3 kB / 276.1 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.012e-05/0.005166, allocations: 4.375 kB / 276.1 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.209e-05/0.005179, allocations: 4.375 kB / 276.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002622/0.005441, allocations: 149.3 kB / 276.2 MB, free: 14.19 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.005447, allocations: 192 / 276.2 MB, free: 14.19 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.708e-06/0.005457, allocations: 384 / 276.2 MB, free: 14.19 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/0.00547, allocations: 7.938 kB / 276.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.142e-05/0.005501, allocations: 11.94 kB / 276.3 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002709/0.005772, allocations: 283.2 kB / 276.5 MB, free: 13.85 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000135/0.005907, allocations: 97.23 kB / 276.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.743e-05/0.005945, allocations: 35.12 kB / 276.7 MB, free: 13.67 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.734e-05/0.005962, allocations: 0 / 276.7 MB, free: 13.67 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.35e-05/0.005986, allocations: 49.27 kB / 276.7 MB, free: 13.61 MB / 266.7 MB Notification: Performance of pre-optimization done (n=6): time 1.002e-06/0.005987, allocations: 0 / 276.7 MB, free: 13.61 MB / 266.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001626/0.006149, allocations: 69.81 kB / 276.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.186e-05/0.006201, allocations: 114.8 kB / 276.9 MB, free: 13.4 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.759e-05/0.006289, allocations: 205.1 kB / 277.1 MB, free: 13.18 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.007e-06/0.006298, allocations: 25.7 kB / 277.1 MB, free: 13.15 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.098e-05/0.006339, allocations: 134.9 kB / 277.3 MB, free: 13.02 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.305e-05/0.006352, allocations: 3.953 kB / 277.3 MB, free: 13.01 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.133e-05/0.006383, allocations: 31.31 kB / 277.3 MB, free: 12.97 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.006496, allocations: 0.4884 MB / 277.8 MB, free: 12.47 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.612e-05/0.006512, allocations: 0 / 277.8 MB, free: 12.47 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.064e-05/0.006533, allocations: 23.36 kB / 277.8 MB, free: 12.44 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.125e-05/0.006574, allocations: 31.59 kB / 277.8 MB, free: 12.4 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.006576, allocations: 4 kB / 277.8 MB, free: 12.4 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.65e-05/0.006642, allocations: 61.55 kB / 277.9 MB, free: 12.33 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/0.006654, allocations: 4 kB / 277.9 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.006659, allocations: 4 kB / 277.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.022e-05/0.006669, allocations: 0 / 277.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.264e-05/0.006722, allocations: 11.98 kB / 277.9 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.006727, allocations: 0 / 277.9 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.902e-05/0.006746, allocations: 0 / 277.9 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.244e-06/0.006753, allocations: 4 kB / 277.9 MB, free: 12.31 MB / 266.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 6.559e-05/0.006819, allocations: 160.5 kB / 278.1 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.962e-05/0.006868, allocations: 61.61 kB / 278.1 MB, free: 12.07 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.792e-05/0.006896, allocations: 12.34 kB / 278.1 MB, free: 12.06 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.006899, allocations: 0 / 278.1 MB, free: 12.06 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.006902, allocations: 0 / 278.1 MB, free: 12.06 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.006906, allocations: 4 kB / 278.1 MB, free: 12.06 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001046/0.00701, allocations: 132.6 kB / 278.3 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.007012, allocations: 4 kB / 278.3 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.023e-05/0.007042, allocations: 11.98 kB / 278.3 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.654e-06/0.007044, allocations: 0 / 278.3 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.007051, allocations: 3.938 kB / 278.3 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.007053, allocations: 3.938 kB / 278.3 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.007055, allocations: 8 kB / 278.3 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001143/0.007169, allocations: 223.3 kB / 278.5 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.011e-05/0.007199, allocations: 19.88 kB / 278.5 MB, free: 11.6 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.076e-05/0.00722, allocations: 7.938 kB / 278.6 MB, free: 11.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.351e-05/0.007254, allocations: 0 / 278.6 MB, free: 11.59 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.992e-05/0.007284, allocations: 11.98 kB / 278.6 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.357e-06/0.007287, allocations: 0 / 278.6 MB, free: 11.58 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.489e-05/0.007342, allocations: 143.2 kB / 278.7 MB, free: 11.44 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.007342, allocations: 0 / 278.7 MB, free: 11.44 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001418/0.007484, allocations: 11.94 kB / 278.7 MB, free: 11.43 MB / 266.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 7.539e-05/0.007559, allocations: 103.2 kB / 278.8 MB, free: 11.31 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.053e-05/0.00764, allocations: 23.67 kB / 278.8 MB, free: 11.29 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.007641, allocations: 0 / 278.8 MB, free: 11.29 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.651e-05/0.007658, allocations: 23.61 kB / 278.9 MB, free: 11.26 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002322/0.00789, allocations: 28.11 kB / 278.9 MB, free: 11.23 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004289/0.008319, allocations: 199.8 kB / 279.1 MB, free: 11 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.914e-05/0.008358, allocations: 67.34 kB / 279.2 MB, free: 10.91 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.495e-05/0.008383, allocations: 8.391 kB / 279.2 MB, free: 10.91 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.811e-05/0.008411, allocations: 12.48 kB / 279.2 MB, free: 10.89 MB / 266.7 MB Notification: Performance of SimCode: time 6.41e-07/0.008412, allocations: 0 / 279.2 MB, free: 10.89 MB / 266.7 MB Notification: Performance of Templates: time 0.002333/0.01074, allocations: 0.7034 MB / 279.9 MB, free: 10.21 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.819130315911025]