Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001777/0.001777, allocations: 115.5 kB / 17.98 MB, free: 4.883 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002585/0.002585, allocations: 205.8 kB / 18.92 MB, free: 4.129 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.545/1.545, allocations: 227.4 MB / 247.1 MB, free: 8.922 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002383/0.002383, allocations: 68.55 kB / 307.1 MB, free: 0.6562 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1263, allocations: 50.54 MB / 357.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004194/0.1305, allocations: 2.425 MB / 360.1 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001681/0.1322, allocations: 0.8612 MB / 361 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001675/0.1324, allocations: 7.938 kB / 361 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002949/0.1328, allocations: 43.75 kB / 361 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002016/0.133, allocations: 47.69 kB / 361.1 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005383/0.1335, allocations: 183.7 kB / 361.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004571/0.134, allocations: 391.5 kB / 361.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000211/0.1342, allocations: 99.44 kB / 361.7 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002852/0.1345, allocations: 171.5 kB / 361.9 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002441/0.1347, allocations: 191.2 kB / 362.1 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.732e-05/0.1348, allocations: 36 kB / 362.1 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.007e-05/0.1349, allocations: 32 kB / 362.1 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001347/0.135, allocations: 119.6 kB / 362.3 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00016/0.1352, allocations: 159.1 kB / 362.4 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003115/0.1355, allocations: 263.7 kB / 362.7 MB, free: 9.105 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1355, allocations: 0 / 362.7 MB, free: 9.105 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.1355, allocations: 0 / 362.7 MB, free: 9.105 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.1355, allocations: 0 / 362.7 MB, free: 9.105 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001342/0.1369, allocations: 0.6742 MB / 363.3 MB, free: 8.383 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.1369, allocations: 8.031 kB / 363.3 MB, free: 8.375 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.558e-05/0.137, allocations: 48.47 kB / 363.4 MB, free: 8.328 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004212/0.1374, allocations: 303.1 kB / 363.7 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000211/0.1377, allocations: 146.2 kB / 363.8 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.003e-05/0.1378, allocations: 36.36 kB / 363.9 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001271/0.139, allocations: 0.5677 MB / 364.4 MB, free: 7.199 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/0.1391, allocations: 4 kB / 364.4 MB, free: 7.195 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.716e-05/0.1391, allocations: 8 kB / 364.5 MB, free: 7.188 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.738e-06/0.1391, allocations: 8 kB / 364.5 MB, free: 7.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001461/0.1406, allocations: 0.5113 MB / 365 MB, free: 6.668 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001732/0.1423, allocations: 1.017 MB / 366 MB, free: 5.574 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001629/0.144, allocations: 0.4985 MB / 366.5 MB, free: 5.039 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006388/0.1446, allocations: 265.8 kB / 366.7 MB, free: 4.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.342e-05/0.1447, allocations: 12.14 kB / 366.8 MB, free: 4.758 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.215e-05/0.1447, allocations: 38.5 kB / 366.8 MB, free: 4.711 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.384e-06/0.1448, allocations: 0 / 366.8 MB, free: 4.711 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.1905/0.3353, allocations: 5.754 MB / 372.5 MB, free: 20.6 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.502e-05/0.3354, allocations: 152.1 kB / 372.7 MB, free: 20.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003382/0.3358, allocations: 267.7 kB / 373 MB, free: 20.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.917e-05/0.3359, allocations: 35.94 kB / 373 MB, free: 20.31 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.443e-05/0.336, allocations: 149.6 kB / 373.1 MB, free: 20.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001823/0.3362, allocations: 187.8 kB / 373.3 MB, free: 20.1 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003018/0.3365, allocations: 114.6 kB / 373.4 MB, free: 20.07 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.047e-05/0.3365, allocations: 347.3 kB / 373.8 MB, free: 19.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001601/0.3382, allocations: 0.6176 MB / 374.4 MB, free: 19.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001675/0.3398, allocations: 0.7984 MB / 375.2 MB, free: 19.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002905/0.3428, allocations: 1.252 MB / 376.4 MB, free: 18.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/0.3428, allocations: 1.375 kB / 376.4 MB, free: 18.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003423/0.3462, allocations: 1.394 MB / 377.8 MB, free: 17.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.804e-05/0.3463, allocations: 12.66 kB / 377.8 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/0.3463, allocations: 5.031 kB / 377.9 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.014e-05/0.3463, allocations: 17.69 kB / 377.9 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001337/0.3477, allocations: 207.6 kB / 378.1 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.747e-05/0.3477, allocations: 12.41 kB / 378.1 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009321/0.3486, allocations: 102.3 kB / 378.2 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.577e-05/0.3487, allocations: 30.58 kB / 378.2 MB, free: 17.79 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.0003243/0.349, allocations: 187.8 kB / 378.4 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003129/0.3494, allocations: 171.2 kB / 378.6 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001652/0.3495, allocations: 67.08 kB / 378.6 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.168e-05/0.3496, allocations: 9.234 kB / 378.6 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.535e-05/0.3496, allocations: 2.188 kB / 378.6 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.859e-06/0.3496, allocations: 5.734 kB / 378.6 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004543/0.3541, allocations: 2.195 MB / 380.8 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.617e-05/0.3542, allocations: 10.22 kB / 380.9 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007563/0.3549, allocations: 179.5 kB / 381 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.684e-05/0.355, allocations: 13.34 kB / 381 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.459e-05/0.355, allocations: 24.66 kB / 381.1 MB, free: 16.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.99e-05/0.3551, allocations: 24.91 kB / 381.1 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.231e-05/0.3551, allocations: 17.06 kB / 381.1 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002971/0.3581, allocations: 1.556 MB / 382.7 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002165/0.3583, allocations: 178.5 kB / 382.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.811e-05/0.3584, allocations: 26.31 kB / 382.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005844/0.359, allocations: 83 kB / 382.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002067/0.3592, allocations: 92.77 kB / 383 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.637e-05/0.3592, allocations: 34.31 kB / 383.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001951/0.3594, allocations: 194.1 kB / 383.3 MB, free: 15.03 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3594, allocations: 1.188 kB / 383.3 MB, free: 15.03 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007455/0.3602, allocations: 123.6 kB / 383.4 MB, free: 15.01 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.0001633/0.3604, allocations: 133 kB / 383.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00284/0.3632, allocations: 1.158 MB / 384.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.636e-06/0.3632, allocations: 4.812 kB / 384.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009865/0.3642, allocations: 336.3 kB / 385 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009557/0.3652, allocations: 148.9 kB / 385.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002393/0.3676, allocations: 1.432 MB / 386.6 MB, free: 13.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003456/0.368, allocations: 0.8337 MB / 387.4 MB, free: 12.49 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003331/0.3683, allocations: 45.73 kB / 387.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of SimCode: time 4.6e-07/0.3683, allocations: 4 kB / 387.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of Templates: time 0.01198/0.3803, allocations: 7.335 MB / 394.8 MB, free: 9.23 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches