Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=500,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001834/0.001834, allocations: 113.5 kB / 18.79 MB, free: 3.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002423/0.002423, allocations: 215.1 kB / 19.8 MB, free: 2.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.774/1.774, allocations: 230.4 MB / 251.1 MB, free: 8.441 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00287/0.00287, allocations: 71.83 kB / 369 MB, free: 6.043 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3437/0.3465, allocations: 53.31 MB / 422.3 MB, free: 7.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003812/0.3503, allocations: 1.616 MB / 423.9 MB, free: 6.234 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001278/0.3516, allocations: 0.5493 MB / 424.4 MB, free: 5.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000126/0.3517, allocations: 3.938 kB / 424.4 MB, free: 5.676 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.272e-05/0.3518, allocations: 11.92 kB / 424.5 MB, free: 5.664 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002169/0.3521, allocations: 11.81 kB / 424.5 MB, free: 5.652 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004204/0.3525, allocations: 67.8 kB / 424.5 MB, free: 5.586 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001579/0.3526, allocations: 55.78 kB / 424.6 MB, free: 5.531 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001532/0.3528, allocations: 12 kB / 424.6 MB, free: 5.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001854/0.353, allocations: 27.84 kB / 424.6 MB, free: 5.492 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001057/0.3531, allocations: 19.92 kB / 424.6 MB, free: 5.473 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.408e-05/0.3531, allocations: 4 kB / 424.6 MB, free: 5.469 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.549e-05/0.3532, allocations: 11.94 kB / 424.7 MB, free: 5.457 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.203e-05/0.3532, allocations: 15.98 kB / 424.7 MB, free: 5.441 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.509e-05/0.3533, allocations: 35.67 kB / 424.7 MB, free: 5.406 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002133/0.3535, allocations: 67.23 kB / 424.8 MB, free: 5.344 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.755e-06/0.3535, allocations: 8 kB / 424.8 MB, free: 5.336 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3535, allocations: 0 / 424.8 MB, free: 5.336 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.3535, allocations: 0 / 424.8 MB, free: 5.336 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.0007373/0.3543, allocations: 386 kB / 425.2 MB, free: 4.914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.3543, allocations: 8.031 kB / 425.2 MB, free: 4.906 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001772/0.3545, allocations: 20.88 kB / 425.2 MB, free: 4.887 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003392/0.3548, allocations: 200.2 kB / 425.4 MB, free: 4.652 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.3548, allocations: 4.375 kB / 425.4 MB, free: 4.648 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.128e-05/0.3549, allocations: 8.312 kB / 425.4 MB, free: 4.641 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000388/0.3552, allocations: 138.2 kB / 425.5 MB, free: 4.484 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.3553, allocations: 4 kB / 425.5 MB, free: 4.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.685e-05/0.3553, allocations: 3.938 kB / 425.5 MB, free: 4.477 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.3553, allocations: 0 / 425.5 MB, free: 4.477 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.986e-05/0.3554, allocations: 27.92 kB / 425.6 MB, free: 4.449 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004776/0.3559, allocations: 282.6 kB / 425.8 MB, free: 4.117 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002989/0.3562, allocations: 156.8 kB / 426 MB, free: 3.918 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.235e-05/0.3563, allocations: 34.69 kB / 426 MB, free: 3.875 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.151e-05/0.3563, allocations: 3.984 kB / 426 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.183e-05/0.3563, allocations: 46.5 kB / 426.1 MB, free: 3.816 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.523e-06/0.3563, allocations: 0 / 426.1 MB, free: 3.816 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003311/0.3567, allocations: 93.55 kB / 426.2 MB, free: 3.719 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.099e-05/0.3567, allocations: 106.8 kB / 426.3 MB, free: 3.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001465/0.3569, allocations: 137.8 kB / 426.4 MB, free: 3.445 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.3569, allocations: 25.95 kB / 426.4 MB, free: 3.414 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.9e-05/0.357, allocations: 96.14 kB / 426.5 MB, free: 3.316 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.379e-05/0.357, allocations: 7.938 kB / 426.5 MB, free: 3.309 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.308e-05/0.357, allocations: 21.72 kB / 426.6 MB, free: 3.281 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.3572, allocations: 318.8 kB / 426.9 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.772e-05/0.3573, allocations: 15.98 kB / 426.9 MB, free: 2.945 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.747e-05/0.3574, allocations: 52.22 kB / 426.9 MB, free: 2.879 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001232/0.3575, allocations: 68.16 kB / 427 MB, free: 2.797 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3575, allocations: 0 / 427 MB, free: 2.797 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001904/0.3577, allocations: 93.55 kB / 427.1 MB, free: 2.699 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.3577, allocations: 4 kB / 427.1 MB, free: 2.695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.3577, allocations: 4 kB / 427.1 MB, free: 2.691 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.3577, allocations: 3.938 kB / 427.1 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.913e-05/0.3578, allocations: 8 kB / 427.1 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.3578, allocations: 4 kB / 427.1 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.674e-05/0.3579, allocations: 11.88 kB / 427.1 MB, free: 2.664 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.132e-05/0.3579, allocations: 4 kB / 427.1 MB, free: 2.66 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 0.0001189/0.358, allocations: 125.9 kB / 427.3 MB, free: 2.527 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.398e-05/0.3581, allocations: 61.8 kB / 427.3 MB, free: 2.461 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.61e-05/0.3581, allocations: 12.25 kB / 427.3 MB, free: 2.438 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.3581, allocations: 4 kB / 427.3 MB, free: 2.434 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.3581, allocations: 0 / 427.3 MB, free: 2.434 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.3581, allocations: 3.984 kB / 427.3 MB, free: 2.43 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000225/0.3584, allocations: 173.6 kB / 427.5 MB, free: 2.211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.3584, allocations: 3.938 kB / 427.5 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.738e-05/0.3584, allocations: 11.98 kB / 427.5 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.3584, allocations: 4 kB / 427.5 MB, free: 2.191 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.207e-06/0.3584, allocations: 0 / 427.5 MB, free: 2.191 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3584, allocations: 4 kB / 427.5 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3584, allocations: 0 / 427.5 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002247/0.3587, allocations: 193.1 kB / 427.7 MB, free: 1.977 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.562e-05/0.3588, allocations: 93.05 kB / 427.8 MB, free: 1.867 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.472e-05/0.3588, allocations: 7.984 kB / 427.8 MB, free: 1.859 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.887e-05/0.3589, allocations: 4 kB / 427.8 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.1e-05/0.3589, allocations: 4 kB / 427.8 MB, free: 1.852 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.558e-06/0.3589, allocations: 0 / 427.8 MB, free: 1.852 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.44e-05/0.359, allocations: 117.7 kB / 427.9 MB, free: 1.738 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.359, allocations: 0 / 427.9 MB, free: 1.738 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002344/0.3592, allocations: 8 kB / 427.9 MB, free: 1.73 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.000166/0.3594, allocations: 99.31 kB / 428 MB, free: 1.625 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001857/0.3596, allocations: 55.84 kB / 428.1 MB, free: 1.57 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.3596, allocations: 3.938 kB / 428.1 MB, free: 1.566 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.717e-05/0.3596, allocations: 15.98 kB / 428.1 MB, free: 1.551 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003757/0.36, allocations: 25.45 kB / 428.1 MB, free: 1.527 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004482/0.3605, allocations: 201.2 kB / 428.3 MB, free: 1.297 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003571/0.3608, allocations: 0.7002 MB / 429 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.9e-05/0.3609, allocations: 11.77 kB / 429.1 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.53e-05/0.3609, allocations: 11.44 kB / 429.1 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3609, allocations: 0 / 429.1 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of Templates: time 0.003985/0.3649, allocations: 0.6544 MB / 429.7 MB, free: 15.93 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches