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.002086/0.002086, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.001974/0.001974, allocations: 214.7 kB / 24.48 MB, free: 3.941 MB / 14.72 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 1.468/1.468, allocations: 230.6 MB / 258.2 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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 0.00157/0.00157, allocations: 47.92 kB / 379 MB, free: 2.434 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.2363, allocations: 53.37 MB / 432.3 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003079/0.2394, allocations: 1.617 MB / 434 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001041/0.2404, allocations: 0.5142 MB / 434.5 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.545e-05/0.2405, allocations: 7.938 kB / 434.5 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.637e-05/0.2406, allocations: 7.922 kB / 434.5 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000122/0.2407, allocations: 11.92 kB / 434.5 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003186/0.241, allocations: 63.75 kB / 434.6 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001184/0.2411, allocations: 47.86 kB / 434.6 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.74e-05/0.2412, allocations: 23.91 kB / 434.6 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001104/0.2413, allocations: 23.92 kB / 434.7 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.919e-05/0.2414, allocations: 23.86 kB / 434.7 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.676e-05/0.2414, allocations: 4 kB / 434.7 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.821e-05/0.2414, allocations: 8 kB / 434.7 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.623e-05/0.2415, allocations: 23.91 kB / 434.7 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.854e-05/0.2415, allocations: 19.81 kB / 434.7 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001535/0.2417, allocations: 74.33 kB / 434.8 MB, free: 4.227 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.2417, allocations: 0 / 434.8 MB, free: 4.227 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.2417, allocations: 3.938 kB / 434.8 MB, free: 4.223 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.2417, allocations: 0 / 434.8 MB, free: 4.223 MB / 334.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.0004957/0.2422, allocations: 309.9 kB / 435.1 MB, free: 3.891 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.2422, allocations: 12.03 kB / 435.1 MB, free: 3.879 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001556/0.2424, allocations: 20.81 kB / 435.1 MB, free: 3.859 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002512/0.2426, allocations: 146.4 kB / 435.3 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.047e-05/0.2426, allocations: 384 / 435.3 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.399e-05/0.2427, allocations: 4.375 kB / 435.3 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000304/0.243, allocations: 138.1 kB / 435.4 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.243, allocations: 0 / 435.4 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-06/0.243, allocations: 0 / 435.4 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.243, allocations: 11.94 kB / 435.4 MB, free: 3.52 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.274e-05/0.2431, allocations: 19.98 kB / 435.5 MB, free: 3.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003174/0.2434, allocations: 230.2 kB / 435.7 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001992/0.2436, allocations: 83.72 kB / 435.8 MB, free: 3.129 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.589e-05/0.2437, allocations: 34.62 kB / 435.8 MB, free: 3.086 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.836e-05/0.2437, allocations: 3.984 kB / 435.8 MB, free: 3.082 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.964e-05/0.2437, allocations: 34.56 kB / 435.8 MB, free: 3.039 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.082e-06/0.2437, allocations: 0 / 435.8 MB, free: 3.039 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003031/0.244, allocations: 101.5 kB / 435.9 MB, free: 2.934 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.158e-05/0.2441, allocations: 110.8 kB / 436 MB, free: 2.801 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001357/0.2442, allocations: 137.8 kB / 436.2 MB, free: 2.656 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.986e-05/0.2443, allocations: 29.7 kB / 436.2 MB, free: 2.621 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.453e-05/0.2443, allocations: 88.14 kB / 436.3 MB, free: 2.531 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.998e-05/0.2443, allocations: 7.953 kB / 436.3 MB, free: 2.523 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.556e-05/0.2444, allocations: 25.66 kB / 436.3 MB, free: 2.492 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.2445, allocations: 318.8 kB / 436.6 MB, free: 2.172 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.176e-05/0.2446, allocations: 20.23 kB / 436.7 MB, free: 2.152 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.832e-05/0.2446, allocations: 44.28 kB / 436.7 MB, free: 2.094 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001205/0.2448, allocations: 60.22 kB / 436.8 MB, free: 2.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.2448, allocations: 3.938 kB / 436.8 MB, free: 2.016 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001717/0.2449, allocations: 89.64 kB / 436.8 MB, free: 1.922 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.245, allocations: 7.984 kB / 436.9 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.245, allocations: 4 kB / 436.9 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.245, allocations: 0 / 436.9 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.614e-05/0.2451, allocations: 11.94 kB / 436.9 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.2451, allocations: 0 / 436.9 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.657e-05/0.2451, allocations: 15.88 kB / 436.9 MB, free: 1.883 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.017e-05/0.2451, allocations: 4 kB / 436.9 MB, free: 1.879 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (7): * Single equations (assignments): 7 * 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 9.863e-05/0.2452, allocations: 121.8 kB / 437 MB, free: 1.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.169e-05/0.2453, allocations: 53.64 kB / 437.1 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.718e-05/0.2454, allocations: 16.38 kB / 437.1 MB, free: 1.668 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.2454, allocations: 3.938 kB / 437.1 MB, free: 1.664 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.2454, allocations: 4 kB / 437.1 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.2454, allocations: 7.922 kB / 437.1 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001628/0.2455, allocations: 121.2 kB / 437.2 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.2455, allocations: 4 kB / 437.2 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.051e-05/0.2456, allocations: 15.92 kB / 437.2 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.2456, allocations: 0 / 437.2 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.001e-05/0.2456, allocations: 4 kB / 437.2 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.2456, allocations: 0 / 437.2 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.2456, allocations: 0 / 437.2 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002262/0.2458, allocations: 193.1 kB / 437.4 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.481e-05/0.2459, allocations: 19.94 kB / 437.4 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.788e-05/0.2459, allocations: 288 / 437.4 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.153e-05/0.246, allocations: 8 kB / 437.5 MB, free: 1.242 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.604e-05/0.246, allocations: 3.984 kB / 437.5 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.793e-06/0.246, allocations: 4 kB / 437.5 MB, free: 1.234 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.427e-05/0.2461, allocations: 110 kB / 437.6 MB, free: 1.129 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2461, allocations: 0 / 437.6 MB, free: 1.129 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002476/0.2463, allocations: 8 kB / 437.6 MB, free: 1.121 MB / 334.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.000104/0.2464, allocations: 107.2 kB / 437.7 MB, free: 1.008 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001628/0.2466, allocations: 47.91 kB / 437.7 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2466, allocations: 0 / 437.7 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.502e-05/0.2467, allocations: 11.94 kB / 437.7 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003451/0.247, allocations: 38.75 kB / 437.8 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003707/0.2474, allocations: 197.2 kB / 438 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.211e-05/0.2475, allocations: 91.69 kB / 438.1 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.19e-05/0.2475, allocations: 4 kB / 438.1 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.34e-05/0.2475, allocations: 11.44 kB / 438.1 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2475, allocations: 0 / 438.1 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of Templates: time 0.003166/0.2507, allocations: 0.7322 MB / 438.8 MB, free: 15.85 MB / 350.1 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=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.36437285199645]