Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.0007774/0.0007774, allocations: 84.73 kB / 21.5 MB, free: 2.984 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.0009329/0.0009329, allocations: 160.2 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 0.9754/0.9754, allocations: 177 MB / 205.2 MB, free: 5.445 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.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.854e-06/1.854e-06, allocations: 7.938 kB / 273.4 MB, free: 1.203 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.518e-06/1.137e-05, allocations: 2.312 kB / 273.4 MB, free: 1.199 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003406/0.003417, allocations: 2.361 MB / 275.8 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001304/0.004721, allocations: 0.8101 MB / 276.6 MB, free: 14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.004836, allocations: 15.94 kB / 276.6 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001648/0.005001, allocations: 47.58 kB / 276.6 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001643/0.005165, allocations: 59.5 kB / 276.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003634/0.005528, allocations: 171.5 kB / 276.9 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000343/0.005871, allocations: 383.5 kB / 277.2 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001264/0.005998, allocations: 74.47 kB / 277.3 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002859/0.006284, allocations: 219.5 kB / 277.5 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001791/0.006463, allocations: 139.6 kB / 277.7 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.751e-05/0.00651, allocations: 36 kB / 277.7 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.978e-05/0.00655, allocations: 32 kB / 277.7 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.803e-05/0.006638, allocations: 107.6 kB / 277.8 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.609e-05/0.006724, allocations: 99.78 kB / 277.9 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002657/0.00699, allocations: 255 kB / 278.2 MB, free: 12.39 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.342e-06/0.006991, allocations: 0 / 278.2 MB, free: 12.39 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.006992, allocations: 0 / 278.2 MB, free: 12.39 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.837e-06/0.006996, allocations: 4 kB / 278.2 MB, free: 12.39 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.0007177/0.007713, allocations: 0.504 MB / 278.7 MB, free: 11.86 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.765e-05/0.007741, allocations: 11.98 kB / 278.7 MB, free: 11.85 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.974e-05/0.007821, allocations: 68.83 kB / 278.8 MB, free: 11.79 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002257/0.008046, allocations: 177.9 kB / 278.9 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001974/0.008244, allocations: 339.9 kB / 279.3 MB, free: 11.19 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.637e-05/0.00829, allocations: 32.33 kB / 279.3 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005602/0.00885, allocations: 421.2 kB / 279.7 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.008863, allocations: 3.938 kB / 279.7 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.607e-05/0.00889, allocations: 12 kB / 279.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.026e-06/0.008899, allocations: 12 kB / 279.7 MB, free: 10.69 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003685/0.009267, allocations: 170.6 kB / 279.9 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008742/0.01014, allocations: 0.6431 MB / 280.6 MB, free: 9.836 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005616/0.0107, allocations: 330.7 kB / 280.9 MB, free: 9.473 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001666/0.01087, allocations: 103.5 kB / 281 MB, free: 9.359 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.411e-05/0.0109, allocations: 8 kB / 281 MB, free: 9.352 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.577e-05/0.01093, allocations: 46.44 kB / 281 MB, free: 9.297 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.723e-06/0.01093, allocations: 0 / 281 MB, free: 9.297 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.008634/0.01956, allocations: 2.238 MB / 283.3 MB, free: 7.055 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.614e-05/0.01964, allocations: 157 kB / 283.4 MB, free: 6.871 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001276/0.01977, allocations: 174.5 kB / 283.6 MB, free: 6.688 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.922e-05/0.01983, allocations: 37.7 kB / 283.6 MB, free: 6.645 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.442e-05/0.01989, allocations: 141.7 kB / 283.8 MB, free: 6.5 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001659/0.02006, allocations: 198.3 kB / 284 MB, free: 6.305 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002416/0.0203, allocations: 90.3 kB / 284 MB, free: 6.211 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.02042, allocations: 346.7 kB / 284.4 MB, free: 5.863 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003845/0.02081, allocations: 196.1 kB / 284.6 MB, free: 5.668 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004477/0.02125, allocations: 294.8 kB / 284.9 MB, free: 5.352 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007712/0.02203, allocations: 495 kB / 285.4 MB, free: 4.84 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.02203, allocations: 3.938 kB / 285.4 MB, free: 4.836 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009191/0.02295, allocations: 0.5326 MB / 285.9 MB, free: 4.297 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.02296, allocations: 14.34 kB / 285.9 MB, free: 4.285 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.02297, allocations: 0 / 285.9 MB, free: 4.285 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.02298, allocations: 4 kB / 285.9 MB, free: 4.281 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009051/0.02389, allocations: 178.4 kB / 286.1 MB, free: 4.109 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.874e-06/0.02389, allocations: 7.938 kB / 286.1 MB, free: 4.102 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005182/0.02441, allocations: 79.8 kB / 286.2 MB, free: 4.023 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.444e-05/0.02448, allocations: 15.98 kB / 286.2 MB, free: 4.008 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,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 (67): * Single equations (assignments): 67 * 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.0001846/0.02466, allocations: 156.5 kB / 286.3 MB, free: 3.844 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002217/0.02488, allocations: 117.5 kB / 286.4 MB, free: 3.723 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.584e-05/0.02498, allocations: 63.3 kB / 286.5 MB, free: 3.66 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/0.02499, allocations: 8 kB / 286.5 MB, free: 3.652 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.02499, allocations: 4 kB / 286.5 MB, free: 3.648 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.025, allocations: 3.984 kB / 286.5 MB, free: 3.645 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002196/0.0272, allocations: 1.185 MB / 287.7 MB, free: 2.309 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.979e-06/0.02721, allocations: 8 kB / 287.7 MB, free: 2.301 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005727/0.02778, allocations: 179 kB / 287.9 MB, free: 2.129 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.314e-05/0.02779, allocations: 12 kB / 287.9 MB, free: 2.117 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.506e-05/0.02784, allocations: 24 kB / 287.9 MB, free: 2.094 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.572e-05/0.02785, allocations: 23.92 kB / 288 MB, free: 2.07 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.647e-06/0.02786, allocations: 16.31 kB / 288 MB, free: 2.055 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008761/0.02874, allocations: 0.8473 MB / 288.8 MB, free: 1.047 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001468/0.02889, allocations: 59.7 kB / 288.9 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.734e-05/0.02894, allocations: 28 kB / 288.9 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002499/0.02919, allocations: 63.97 kB / 289 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.0293, allocations: 83.64 kB / 289 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.76e-05/0.02933, allocations: 31.94 kB / 289.1 MB, free: 0.7852 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.647e-05/0.02937, allocations: 41.88 kB / 289.1 MB, free: 0.7422 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02937, allocations: 0 / 289.1 MB, free: 0.7422 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003234/0.02969, allocations: 116 kB / 289.2 MB, free: 0.6289 MB / 266.7 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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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 9.47e-05/0.02979, allocations: 120.2 kB / 289.3 MB, free: 0.5 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000508/0.03029, allocations: 465.2 kB / 289.8 MB, free: 48 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.082e-06/0.0303, allocations: 7.938 kB / 289.8 MB, free: 40 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001712/0.03047, allocations: 151.1 kB / 290 MB, free: 15.89 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004699/0.03094, allocations: 135.2 kB / 290.1 MB, free: 15.76 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001129/0.03207, allocations: 1.002 MB / 291.1 MB, free: 14.59 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.773e-05/0.03216, allocations: 130.8 kB / 291.2 MB, free: 14.45 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002423/0.0324, allocations: 75.2 kB / 291.3 MB, free: 14.38 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002986/0.0327, allocations: 111.4 kB / 291.4 MB, free: 14.27 MB / 282.7 MB Notification: Performance of SimCode: time 6.11e-07/0.0327, allocations: 0 / 291.4 MB, free: 14.27 MB / 282.7 MB Notification: Performance of Templates: time 0.00928/0.04198, allocations: 9.317 MB / 300.7 MB, free: 4.992 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.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.8411723342724144]