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.0009526/0.0009526, allocations: 80.8 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.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.001025/0.001025, allocations: 168.4 kB / 24.92 MB, free: 8.258 MB / 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.9602/0.9602, allocations: 177.1 MB / 205.3 MB, free: 5.496 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.473e-06/1.473e-06, allocations: 0 / 273.5 MB, free: 1.254 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.042e-05/2.189e-05, allocations: 2.312 kB / 273.5 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002594/0.002616, allocations: 1.696 MB / 275.2 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007424/0.003358, allocations: 0.5529 MB / 275.7 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.7e-05/0.003435, allocations: 4 kB / 275.8 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.57e-05/0.003481, allocations: 11.92 kB / 275.8 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001302/0.003611, allocations: 11.86 kB / 275.8 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002954/0.003906, allocations: 63.69 kB / 275.8 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.267e-05/0.003999, allocations: 51.78 kB / 275.9 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.288e-05/0.004072, allocations: 15.98 kB / 275.9 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001073/0.004179, allocations: 35.89 kB / 275.9 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.842e-05/0.004228, allocations: 19.92 kB / 276 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.39e-05/0.004242, allocations: 4 kB / 276 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.734e-05/0.004289, allocations: 4 kB / 276 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.869e-05/0.004328, allocations: 19.92 kB / 276 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.269e-05/0.00435, allocations: 19.92 kB / 276 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001089/0.004459, allocations: 51.75 kB / 276.1 MB, free: 14.68 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.713e-06/0.004461, allocations: 0 / 276.1 MB, free: 14.68 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.004462, allocations: 0 / 276.1 MB, free: 14.68 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.667e-06/0.004466, allocations: 0 / 276.1 MB, free: 14.68 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.0002935/0.004759, allocations: 288.5 kB / 276.3 MB, free: 14.38 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.907e-05/0.004788, allocations: 8.031 kB / 276.3 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.874e-05/0.004887, allocations: 24.91 kB / 276.4 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001394/0.005026, allocations: 145.6 kB / 276.5 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.913e-06/0.005033, allocations: 4.312 kB / 276.5 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.682e-06/0.00504, allocations: 4.375 kB / 276.5 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001651/0.005205, allocations: 131.1 kB / 276.6 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.432e-06/0.005212, allocations: 4.125 kB / 276.7 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.532e-06/0.005218, allocations: 384 / 276.7 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.005224, allocations: 7.938 kB / 276.7 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.805e-05/0.005242, allocations: 8 kB / 276.7 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001821/0.005424, allocations: 166 kB / 276.8 MB, free: 13.81 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.739e-05/0.005521, allocations: 63.66 kB / 276.9 MB, free: 13.72 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.451e-05/0.005546, allocations: 30.69 kB / 276.9 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.778e-05/0.005564, allocations: 4 kB / 276.9 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.264e-05/0.005586, allocations: 30.56 kB / 277 MB, free: 13.64 MB / 266.7 MB Notification: Performance of pre-optimization done (n=6): time 1.083e-06/0.005587, allocations: 0 / 277 MB, free: 13.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001448/0.005732, allocations: 69.48 kB / 277 MB, free: 13.57 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.419e-05/0.005796, allocations: 111.2 kB / 277.1 MB, free: 13.43 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.065e-05/0.005877, allocations: 141.5 kB / 277.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.808e-06/0.005887, allocations: 33.7 kB / 277.3 MB, free: 13.25 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003076/0.006194, allocations: 84.12 kB / 277.4 MB, free: 13.16 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.123e-05/0.006216, allocations: 11.94 kB / 277.4 MB, free: 13.15 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.956e-05/0.006245, allocations: 13.72 kB / 277.4 MB, free: 13.13 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.97e-05/0.006335, allocations: 318.8 kB / 277.7 MB, free: 12.81 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.487e-05/0.00635, allocations: 4 kB / 277.7 MB, free: 12.8 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.839e-05/0.006368, allocations: 17.7 kB / 277.7 MB, free: 12.78 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.446e-05/0.006403, allocations: 29.64 kB / 277.8 MB, free: 12.75 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.006405, allocations: 4 kB / 277.8 MB, free: 12.74 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.706e-05/0.006462, allocations: 41.69 kB / 277.8 MB, free: 12.7 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.006474, allocations: 4 kB / 277.8 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.006479, allocations: 7.875 kB / 277.8 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.059e-05/0.006489, allocations: 7.938 kB / 277.8 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.448e-05/0.006534, allocations: 7.984 kB / 277.8 MB, free: 12.67 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.595e-06/0.006536, allocations: 0 / 277.8 MB, free: 12.67 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.786e-05/0.006554, allocations: 0 / 277.8 MB, free: 12.67 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.062e-06/0.00656, allocations: 4 kB / 277.8 MB, free: 12.66 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 7.057e-05/0.006631, allocations: 116.7 kB / 278 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.549e-05/0.006676, allocations: 45.72 kB / 278 MB, free: 12.49 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.927e-05/0.006706, allocations: 20.27 kB / 278 MB, free: 12.47 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.006708, allocations: 0 / 278 MB, free: 12.47 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.006711, allocations: 4 kB / 278 MB, free: 12.47 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.006715, allocations: 3.938 kB / 278 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001004/0.006816, allocations: 73.88 kB / 278.1 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.006817, allocations: 0 / 278.1 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.123e-05/0.006849, allocations: 8 kB / 278.1 MB, free: 12.37 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.006854, allocations: 7.984 kB / 278.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.22e-06/0.006859, allocations: 0 / 278.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.006861, allocations: 0 / 278.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.006865, allocations: 11.94 kB / 278.1 MB, free: 12.35 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.333e-05/0.006948, allocations: 153.2 kB / 278.3 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.514e-05/0.006973, allocations: 15.89 kB / 278.3 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.571e-05/0.006989, allocations: 7.984 kB / 278.3 MB, free: 12.15 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.271e-05/0.007022, allocations: 0 / 278.3 MB, free: 12.15 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.601e-05/0.007048, allocations: 7.938 kB / 278.3 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-06/0.007053, allocations: 4 kB / 278.3 MB, free: 12.14 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.194e-05/0.007075, allocations: 28.78 kB / 278.3 MB, free: 12.11 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.007075, allocations: 0 / 278.3 MB, free: 12.11 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001191/0.007194, allocations: 8 kB / 278.4 MB, free: 12.1 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.24e-05/0.007267, allocations: 88.44 kB / 278.4 MB, free: 12 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 5.995e-05/0.007327, allocations: 20.98 kB / 278.5 MB, free: 11.98 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.007331, allocations: 4 kB / 278.5 MB, free: 11.98 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.255e-05/0.007343, allocations: 12.84 kB / 278.5 MB, free: 11.96 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001807/0.007524, allocations: 28.2 kB / 278.5 MB, free: 11.93 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004139/0.007938, allocations: 203.4 kB / 278.7 MB, free: 11.7 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.716e-05/0.007975, allocations: 63.34 kB / 278.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.222e-05/0.007997, allocations: 0 / 278.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.357e-05/0.008051, allocations: 59.36 kB / 278.8 MB, free: 11.56 MB / 266.7 MB Notification: Performance of SimCode: time 1.413e-06/0.008052, allocations: 3.938 kB / 278.8 MB, free: 11.56 MB / 266.7 MB Notification: Performance of Templates: time 0.002272/0.01032, allocations: 0.7113 MB / 279.5 MB, free: 10.88 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 -s gbode -gbm=radauIIA3 -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.5826538023538888]