Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001146/0.001146, allocations: 102.4 kB / 17 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001738/0.001738, allocations: 192.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.7 MB / 246.4 MB, free: 11.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000317/0.0003171, allocations: 8 kB / 307.1 MB, free: 1.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1036, allocations: 51.53 MB / 358.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002328/0.106, allocations: 1.794 MB / 360.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00119/0.1072, allocations: 0.6436 MB / 361.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000153/0.1074, allocations: 4 kB / 361.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002304/0.1076, allocations: 39.75 kB / 361.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001456/0.1078, allocations: 39.77 kB / 361.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003641/0.1082, allocations: 95.75 kB / 361.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003558/0.1085, allocations: 303.2 kB / 361.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001586/0.1087, allocations: 52.36 kB / 361.6 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000293/0.109, allocations: 123.6 kB / 361.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002101/0.1092, allocations: 131.5 kB / 361.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.923e-05/0.1093, allocations: 20 kB / 361.9 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.387e-05/0.1093, allocations: 16 kB / 361.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.584e-05/0.1094, allocations: 67.78 kB / 361.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.671e-05/0.1095, allocations: 57.58 kB / 362 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002177/0.1097, allocations: 199.8 kB / 362.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1097, allocations: 0 / 362.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1097, allocations: 0 / 362.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.1097, allocations: 0 / 362.2 MB, free: 10.06 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.00105/0.1108, allocations: 0.5532 MB / 362.7 MB, free: 9.461 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.1108, allocations: 8.031 kB / 362.7 MB, free: 9.453 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.603e-05/0.1109, allocations: 39.7 kB / 362.8 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003104/0.1113, allocations: 243.2 kB / 363 MB, free: 9.137 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001936/0.1115, allocations: 145.6 kB / 363.2 MB, free: 8.977 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.169e-05/0.1115, allocations: 27.95 kB / 363.2 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008067/0.1123, allocations: 375.6 kB / 363.6 MB, free: 8.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.1124, allocations: 3.906 kB / 363.6 MB, free: 8.566 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.113e-05/0.1124, allocations: 12 kB / 363.6 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.834e-06/0.1124, allocations: 4 kB / 363.6 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001235/0.1136, allocations: 0.5135 MB / 364.1 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001721/0.1154, allocations: 1.027 MB / 365.1 MB, free: 6.934 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001074/0.1165, allocations: 355.1 kB / 365.5 MB, free: 6.578 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004625/0.1169, allocations: 189.2 kB / 365.6 MB, free: 6.391 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.77e-05/0.117, allocations: 4.234 kB / 365.7 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/0.117, allocations: 34.8 kB / 365.7 MB, free: 6.344 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.104e-06/0.117, allocations: 0 / 365.7 MB, free: 6.344 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.2026/0.3197, allocations: 6.659 MB / 372.3 MB, free: 20.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.223e-05/0.3197, allocations: 63.5 kB / 372.4 MB, free: 20.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002682/0.32, allocations: 198.2 kB / 372.6 MB, free: 20.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.689e-05/0.3201, allocations: 37.88 kB / 372.6 MB, free: 20.15 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.119e-05/0.3202, allocations: 150.6 kB / 372.8 MB, free: 20.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001441/0.3203, allocations: 171.5 kB / 373 MB, free: 19.97 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.705e-05/0.3204, allocations: 12.56 kB / 373 MB, free: 19.97 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.503e-05/0.3205, allocations: 339.4 kB / 373.3 MB, free: 19.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001233/0.3217, allocations: 0.4929 MB / 373.8 MB, free: 19.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00134/0.323, allocations: 0.5491 MB / 374.3 MB, free: 19.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00118/0.3242, allocations: 439.4 kB / 374.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3242, allocations: 2.156 kB / 374.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002585/0.3268, allocations: 1.065 MB / 375.8 MB, free: 19.35 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.3269, allocations: 5.188 kB / 375.8 MB, free: 19.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.3269, allocations: 2.016 kB / 375.8 MB, free: 19.35 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.3269, allocations: 3.031 kB / 375.8 MB, free: 19.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000924/0.3278, allocations: 192.8 kB / 376 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.3279, allocations: 3.688 kB / 376 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006199/0.3285, allocations: 106.9 kB / 376.1 MB, free: 19.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.03e-05/0.3285, allocations: 15.97 kB / 376.2 MB, free: 19.33 MB / 302.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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001856/0.3287, allocations: 161.3 kB / 376.3 MB, free: 19.19 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.619e-05/0.3288, allocations: 24.41 kB / 376.3 MB, free: 19.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001232/0.3289, allocations: 49.7 kB / 376.4 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.329, allocations: 9.375 kB / 376.4 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/0.329, allocations: 4.484 kB / 376.4 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.329, allocations: 2.625 kB / 376.4 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003678/0.3327, allocations: 1.994 MB / 378.4 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/0.3327, allocations: 7.594 kB / 378.4 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006252/0.3333, allocations: 162 kB / 378.6 MB, free: 18.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.447e-05/0.3333, allocations: 12.84 kB / 378.6 MB, free: 18.08 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.093e-05/0.3334, allocations: 19.69 kB / 378.6 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.346e-05/0.3334, allocations: 18 kB / 378.6 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.828e-06/0.3334, allocations: 17.52 kB / 378.6 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002459/0.3359, allocations: 1.343 MB / 380 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001464/0.336, allocations: 144.5 kB / 380.1 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.221e-05/0.3361, allocations: 17.23 kB / 380.1 MB, free: 17.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004895/0.3366, allocations: 98.64 kB / 380.2 MB, free: 17.19 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001886/0.3368, allocations: 90.83 kB / 380.3 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.69e-05/0.3369, allocations: 29.28 kB / 380.3 MB, free: 17.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001484/0.337, allocations: 150.9 kB / 380.5 MB, free: 17.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.337, allocations: 0 / 380.5 MB, free: 17.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004963/0.3375, allocations: 96.06 kB / 380.6 MB, free: 17.04 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000139/0.3377, allocations: 124.5 kB / 380.7 MB, free: 16.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002228/0.3399, allocations: 0.9277 MB / 381.6 MB, free: 16.63 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.3399, allocations: 1.25 kB / 381.6 MB, free: 16.63 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009905/0.3409, allocations: 360.2 kB / 382 MB, free: 16.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006639/0.3416, allocations: 68.73 kB / 382.1 MB, free: 16.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002024/0.3436, allocations: 1.151 MB / 383.2 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002801/0.3439, allocations: 0.7809 MB / 384 MB, free: 14.96 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004968/0.3444, allocations: 79.84 kB / 384.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002013/0.3446, allocations: 29.62 kB / 384.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3446, allocations: 1.375 kB / 384.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of Templates: time 0.01198/0.3566, allocations: 5.03 MB / 389.1 MB, free: 13.3 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches