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.000871/0.000871, allocations: 80.8 kB / 21.49 MB, free: 2.996 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.001505/0.001505, allocations: 174 kB / 24.91 MB, free: 8.781 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.9443/0.9443, allocations: 177.1 MB / 205.3 MB, free: 5.098 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.913e-06/1.913e-06, allocations: 0 / 273.5 MB, free: 1.184 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.478e-05/2.669e-05, allocations: 2.312 kB / 273.5 MB, free: 1.18 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003126/0.003153, allocations: 1.654 MB / 275.1 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001057/0.00421, allocations: 0.5529 MB / 275.7 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.155e-05/0.004302, allocations: 7.938 kB / 275.7 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 5.286e-05/0.004355, allocations: 7.938 kB / 275.7 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001485/0.004503, allocations: 11.88 kB / 275.7 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003721/0.004875, allocations: 63.73 kB / 275.8 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001334/0.005009, allocations: 51.78 kB / 275.8 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.973e-05/0.005098, allocations: 15.97 kB / 275.8 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001544/0.005253, allocations: 31.92 kB / 275.9 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.892e-05/0.005312, allocations: 19.95 kB / 275.9 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.806e-05/0.00533, allocations: 4 kB / 275.9 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.71e-05/0.005377, allocations: 8 kB / 275.9 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.517e-05/0.005422, allocations: 11.94 kB / 275.9 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.961e-05/0.005452, allocations: 19.92 kB / 275.9 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000136/0.005588, allocations: 55.69 kB / 276 MB, free: 14.65 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.005591, allocations: 0 / 276 MB, free: 14.65 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.005592, allocations: 4 kB / 276 MB, free: 14.65 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.359e-06/0.005597, allocations: 3.938 kB / 276 MB, free: 14.64 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.0003743/0.005971, allocations: 284.6 kB / 276.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.006009, allocations: 8.031 kB / 276.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001364/0.006145, allocations: 20.92 kB / 276.3 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001835/0.006329, allocations: 145.6 kB / 276.4 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.00634, allocations: 4.375 kB / 276.4 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.197e-05/0.006352, allocations: 4.312 kB / 276.4 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002163/0.006568, allocations: 131.1 kB / 276.6 MB, free: 13.99 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.006575, allocations: 4.188 kB / 276.6 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.133e-06/0.006582, allocations: 384 / 276.6 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.00659, allocations: 3.938 kB / 276.6 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.9e-05/0.006619, allocations: 19.92 kB / 276.6 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003587/0.006977, allocations: 154.1 kB / 276.7 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001347/0.007112, allocations: 71.73 kB / 276.8 MB, free: 13.69 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.19e-05/0.007144, allocations: 22.64 kB / 276.8 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.92e-05/0.007163, allocations: 7.938 kB / 276.8 MB, free: 13.65 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.42e-05/0.007187, allocations: 38.5 kB / 276.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of pre-optimization done (n=6): time 2.706e-06/0.00719, allocations: 3.984 kB / 276.9 MB, free: 13.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001546/0.007345, allocations: 65.55 kB / 276.9 MB, free: 13.53 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.146e-05/0.007406, allocations: 111.1 kB / 277.1 MB, free: 13.4 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.658e-05/0.007503, allocations: 149.3 kB / 277.2 MB, free: 13.24 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.146e-05/0.007514, allocations: 25.7 kB / 277.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.008e-05/0.007544, allocations: 84.14 kB / 277.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.793e-05/0.007562, allocations: 3.953 kB / 277.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.685e-05/0.007599, allocations: 21.69 kB / 277.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.243e-05/0.007681, allocations: 318.8 kB / 277.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.076e-05/0.007692, allocations: 0 / 277.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.239e-05/0.007715, allocations: 25.62 kB / 277.7 MB, free: 12.74 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.674e-05/0.007751, allocations: 17.72 kB / 277.7 MB, free: 12.72 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.007754, allocations: 4 kB / 277.7 MB, free: 12.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.747e-05/0.007831, allocations: 49.61 kB / 277.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.007847, allocations: 8 kB / 277.7 MB, free: 12.65 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.007854, allocations: 3.938 kB / 277.7 MB, free: 12.65 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.007868, allocations: 0 / 277.7 MB, free: 12.65 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.438e-05/0.007922, allocations: 4 kB / 277.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.645e-06/0.007925, allocations: 0 / 277.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.47e-05/0.007949, allocations: 4 kB / 277.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.311e-06/0.007956, allocations: 0 / 277.8 MB, free: 12.64 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.095e-05/0.008027, allocations: 124.7 kB / 277.9 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.246e-05/0.008089, allocations: 45.66 kB / 277.9 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3e-05/0.008119, allocations: 16.28 kB / 277.9 MB, free: 12.44 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.008123, allocations: 4 kB / 277.9 MB, free: 12.44 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.008126, allocations: 0 / 277.9 MB, free: 12.44 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.008129, allocations: 0 / 277.9 MB, free: 12.44 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001327/0.008262, allocations: 73.88 kB / 278 MB, free: 12.35 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.008264, allocations: 4 kB / 278 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.082e-05/0.008305, allocations: 7.984 kB / 278 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.008307, allocations: 4 kB / 278 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.051e-06/0.008314, allocations: 4 kB / 278 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.008315, allocations: 0 / 278 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.00832, allocations: 15.94 kB / 278 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001035/0.008424, allocations: 149.1 kB / 278.2 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.562e-05/0.00846, allocations: 16.25 kB / 278.2 MB, free: 12.13 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.811e-05/0.008478, allocations: 4 kB / 278.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.721e-05/0.008535, allocations: 4 kB / 278.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.384e-05/0.008559, allocations: 7.938 kB / 278.2 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-06/0.008563, allocations: 0 / 278.2 MB, free: 12.11 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.484e-05/0.008598, allocations: 32.77 kB / 278.3 MB, free: 12.08 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.008598, allocations: 4 kB / 278.3 MB, free: 12.07 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001999/0.008798, allocations: 8 kB / 278.3 MB, free: 12.07 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 0.000102/0.0089, allocations: 88.44 kB / 278.4 MB, free: 11.97 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.246e-05/0.008973, allocations: 24.78 kB / 278.4 MB, free: 11.94 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.008976, allocations: 0 / 278.4 MB, free: 11.94 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.589e-05/0.008992, allocations: 12.8 kB / 278.4 MB, free: 11.93 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002427/0.009235, allocations: 25.42 kB / 278.4 MB, free: 11.9 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004555/0.00969, allocations: 195.4 kB / 278.6 MB, free: 11.68 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.382e-05/0.009734, allocations: 67.28 kB / 278.7 MB, free: 11.59 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.666e-05/0.009761, allocations: 3.984 kB / 278.7 MB, free: 11.59 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.472e-05/0.009815, allocations: 55.38 kB / 278.7 MB, free: 11.53 MB / 266.7 MB Notification: Performance of SimCode: time 7.41e-07/0.009816, allocations: 0 / 278.7 MB, free: 11.53 MB / 266.7 MB Notification: Performance of Templates: time 0.002857/0.01267, allocations: 0.7069 MB / 279.4 MB, free: 10.85 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.4739716658368707]