Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00129/0.00129, allocations: 84.73 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001471/0.001471, allocations: 160.3 kB / 24.91 MB, free: 8.758 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.01/1.01, allocations: 177 MB / 205.2 MB, free: 5.426 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.123e-06/1.123e-06, allocations: 0 / 273.4 MB, free: 1.203 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.518e-06/1.064e-05, allocations: 2.312 kB / 273.4 MB, free: 1.199 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002429/0.00244, allocations: 1.665 MB / 275.1 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008384/0.003278, allocations: 0.549 MB / 275.6 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.268e-05/0.003341, allocations: 8 kB / 275.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.813e-05/0.003379, allocations: 7.875 kB / 275.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 9.185e-05/0.003471, allocations: 11.92 kB / 275.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002225/0.003693, allocations: 67.67 kB / 275.7 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.173e-05/0.003785, allocations: 51.8 kB / 275.7 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.802e-05/0.003843, allocations: 15.97 kB / 275.8 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001081/0.003951, allocations: 35.91 kB / 275.8 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.322e-05/0.003994, allocations: 15.91 kB / 275.8 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.335e-05/0.004008, allocations: 4 kB / 275.8 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.086e-05/0.004039, allocations: 16 kB / 275.8 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.004e-05/0.004069, allocations: 15.92 kB / 275.8 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.284e-05/0.004092, allocations: 11.94 kB / 275.9 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001022/0.004194, allocations: 55.73 kB / 275.9 MB, free: 14.66 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.413e-06/0.004195, allocations: 0 / 275.9 MB, free: 14.66 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.31e-07/0.004196, allocations: 4 kB / 275.9 MB, free: 14.65 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.354e-06/0.004198, allocations: 0 / 275.9 MB, free: 14.65 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.0002776/0.004476, allocations: 284.5 kB / 276.2 MB, free: 14.35 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.084e-05/0.004506, allocations: 11.98 kB / 276.2 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.957e-05/0.004606, allocations: 16.92 kB / 276.2 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001442/0.00475, allocations: 145.6 kB / 276.4 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.447e-06/0.00476, allocations: 8.375 kB / 276.4 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.788e-06/0.004769, allocations: 384 / 276.4 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001769/0.004946, allocations: 135 kB / 276.5 MB, free: 13.99 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.051e-06/0.004952, allocations: 4.188 kB / 276.5 MB, free: 13.99 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.53e-06/0.004958, allocations: 384 / 276.5 MB, free: 13.99 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.004963, allocations: 7.938 kB / 276.5 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.29e-05/0.004986, allocations: 8 kB / 276.5 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001874/0.005173, allocations: 162 kB / 276.7 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001108/0.005284, allocations: 67.72 kB / 276.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.961e-05/0.005313, allocations: 26.62 kB / 276.8 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.496e-05/0.005328, allocations: 4 kB / 276.8 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.26e-05/0.005351, allocations: 34.56 kB / 276.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of pre-optimization done (n=6): time 8.11e-07/0.005352, allocations: 0 / 276.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001242/0.005476, allocations: 73.48 kB / 276.9 MB, free: 13.54 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.654e-05/0.005533, allocations: 106.8 kB / 277 MB, free: 13.41 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.572e-05/0.005628, allocations: 141.9 kB / 277.1 MB, free: 13.26 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.44e-05/0.005643, allocations: 29.7 kB / 277.2 MB, free: 13.23 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.595e-05/0.005679, allocations: 88.12 kB / 277.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.705e-05/0.005696, allocations: 3.953 kB / 277.2 MB, free: 13.13 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.133e-05/0.005727, allocations: 17.7 kB / 277.3 MB, free: 13.11 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.223e-05/0.005819, allocations: 318.8 kB / 277.6 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.356e-06/0.005828, allocations: 0 / 277.6 MB, free: 12.79 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.1e-05/0.005849, allocations: 17.7 kB / 277.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.387e-05/0.005882, allocations: 34.17 kB / 277.6 MB, free: 12.73 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.005884, allocations: 0 / 277.6 MB, free: 12.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.234e-05/0.005947, allocations: 45.67 kB / 277.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.089e-05/0.005957, allocations: 11.94 kB / 277.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.005962, allocations: 3.938 kB / 277.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.684e-06/0.00597, allocations: 0 / 277.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.237e-05/0.006002, allocations: 4 kB / 277.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.086e-06/0.006005, allocations: 3.984 kB / 277.7 MB, free: 12.65 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.734e-05/0.006032, allocations: 8 kB / 277.7 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.178e-06/0.006037, allocations: 0 / 277.7 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.501e-05/0.006112, allocations: 132.6 kB / 277.8 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.559e-05/0.006167, allocations: 37.69 kB / 277.9 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.483e-05/0.006192, allocations: 16.28 kB / 277.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.006198, allocations: 7.984 kB / 277.9 MB, free: 12.44 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.0062, allocations: 3.938 kB / 277.9 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.006203, allocations: 0 / 277.9 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001319/0.006335, allocations: 73.88 kB / 278 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.006336, allocations: 4 kB / 278 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.815e-05/0.006364, allocations: 4 kB / 278 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.006367, allocations: 4 kB / 278 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.45e-06/0.006372, allocations: 4 kB / 278 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.806e-06/0.006375, allocations: 3.984 kB / 278 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.006379, allocations: 7.938 kB / 278 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.368e-05/0.006473, allocations: 149.2 kB / 278.1 MB, free: 12.15 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.452e-05/0.006507, allocations: 11.89 kB / 278.2 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.503e-05/0.006522, allocations: 4 kB / 278.2 MB, free: 12.13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.711e-05/0.006579, allocations: 0 / 278.2 MB, free: 12.13 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.759e-05/0.006607, allocations: 15.92 kB / 278.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.476e-06/0.00661, allocations: 0 / 278.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.99e-05/0.00664, allocations: 28.78 kB / 278.2 MB, free: 12.09 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.00664, allocations: 4.031 kB / 278.2 MB, free: 12.08 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002373/0.006878, allocations: 8 kB / 278.2 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 8.036e-05/0.006958, allocations: 80.42 kB / 278.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 6.41e-05/0.007022, allocations: 24.78 kB / 278.3 MB, free: 11.96 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.007026, allocations: 4 kB / 278.3 MB, free: 11.95 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.48e-05/0.00704, allocations: 8.844 kB / 278.3 MB, free: 11.94 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002399/0.00728, allocations: 32.62 kB / 278.4 MB, free: 11.91 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004449/0.007725, allocations: 199.4 kB / 278.6 MB, free: 11.68 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.74e-05/0.007773, allocations: 63.34 kB / 278.6 MB, free: 11.6 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.301e-05/0.007796, allocations: 4.312 kB / 278.6 MB, free: 11.6 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.795e-05/0.007854, allocations: 59.36 kB / 278.7 MB, free: 11.54 MB / 266.7 MB Notification: Performance of SimCode: time 6.11e-07/0.007854, allocations: 0 / 278.7 MB, free: 11.54 MB / 266.7 MB Notification: Performance of Templates: time 0.002593/0.01045, allocations: 0.7072 MB / 279.4 MB, free: 10.86 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.636041158810258]