Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009078/0.0009078, allocations: 97.16 kB / 17.31 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009818/0.0009818, allocations: 186.5 kB / 18.22 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.281/1.281, allocations: 223.3 MB / 242.3 MB, free: 12 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002217/0.0002217, allocations: 5.969 kB / 302.1 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07434/0.07457, allocations: 50.41 MB / 352.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.00225/0.07686, allocations: 2.014 MB / 354.5 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001132/0.07801, allocations: 0.7872 MB / 355.3 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001102/0.07813, allocations: 7.938 kB / 355.3 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002086/0.07835, allocations: 39.7 kB / 355.3 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000167/0.07853, allocations: 55.67 kB / 355.4 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004093/0.07895, allocations: 147.8 kB / 355.5 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003277/0.07928, allocations: 359.6 kB / 355.9 MB, free: 268 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001746/0.07946, allocations: 87.84 kB / 356 MB, free: 180 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001781/0.07965, allocations: 147.4 kB / 356.1 MB, free: 32 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002073/0.07987, allocations: 151.4 kB / 356.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.11e-05/0.07992, allocations: 16 kB / 356.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.87e-05/0.07997, allocations: 16 kB / 356.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.842e-05/0.08006, allocations: 79.72 kB / 356.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001285/0.08019, allocations: 156.9 kB / 356.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002044/0.0804, allocations: 227.6 kB / 356.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.08041, allocations: 0 / 356.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.08042, allocations: 0 / 356.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.359e-06/0.08043, allocations: 0 / 356.7 MB, free: 15.39 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001039/0.08148, allocations: 0.5889 MB / 357.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.889e-05/0.08151, allocations: 8.031 kB / 357.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.478e-05/0.08159, allocations: 44.55 kB / 357.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002896/0.08189, allocations: 268.3 kB / 357.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001947/0.08209, allocations: 142.3 kB / 357.8 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.469e-05/0.08217, allocations: 36.28 kB / 357.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001198/0.08337, allocations: 0.5818 MB / 358.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/0.0834, allocations: 0 / 358.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.733e-05/0.08345, allocations: 12 kB / 358.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.08346, allocations: 8 kB / 358.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001462/0.08493, allocations: 0.5347 MB / 359 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001414/0.08635, allocations: 1.022 MB / 360 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001667/0.08803, allocations: 0.5181 MB / 360.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006737/0.08872, allocations: 267.4 kB / 360.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.294e-05/0.08878, allocations: 19.88 kB / 360.8 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.011e-05/0.0888, allocations: 34.56 kB / 360.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.724e-06/0.08881, allocations: 0 / 360.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.04407/0.1329, allocations: 6.761 MB / 367.6 MB, free: 4.285 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.398e-05/0.133, allocations: 161 kB / 367.7 MB, free: 4.094 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001779/0.1332, allocations: 196.2 kB / 367.9 MB, free: 3.891 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.593e-05/0.1333, allocations: 41.7 kB / 368 MB, free: 3.844 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.983e-05/0.1334, allocations: 141.5 kB / 368.1 MB, free: 3.703 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001767/0.1335, allocations: 193.3 kB / 368.3 MB, free: 3.512 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/0.1337, allocations: 57.69 kB / 368.3 MB, free: 3.449 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.1338, allocations: 338.8 kB / 368.7 MB, free: 3.109 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00175/0.1355, allocations: 0.6617 MB / 369.3 MB, free: 2.445 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001846/0.1374, allocations: 0.8276 MB / 370.2 MB, free: 1.543 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003327/0.1407, allocations: 1.329 MB / 371.5 MB, free: 140 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.1407, allocations: 3.938 kB / 371.5 MB, free: 136 kB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.1423/0.2831, allocations: 1.469 MB / 373 MB, free: 25.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.525e-05/0.2831, allocations: 7.562 kB / 373 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.616e-05/0.2832, allocations: 5.312 kB / 373 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.637e-05/0.2832, allocations: 11.3 kB / 373 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001491/0.2847, allocations: 233.1 kB / 373.2 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.186e-05/0.2847, allocations: 14.47 kB / 373.2 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001113/0.2859, allocations: 115.6 kB / 373.3 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.296e-05/0.286, allocations: 30.36 kB / 373.4 MB, free: 25.45 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.0003036/0.2863, allocations: 182.6 kB / 373.6 MB, free: 25.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003127/0.2866, allocations: 153 kB / 373.7 MB, free: 25.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001984/0.2868, allocations: 67.08 kB / 373.8 MB, free: 25.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.829e-06/0.2868, allocations: 7.812 kB / 373.8 MB, free: 25.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.377e-06/0.2868, allocations: 2.031 kB / 373.8 MB, free: 25.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.2868, allocations: 4.641 kB / 373.8 MB, free: 25.3 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005121/0.292, allocations: 2.299 MB / 376.1 MB, free: 24.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.848e-05/0.292, allocations: 10.81 kB / 376.1 MB, free: 24.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008173/0.2928, allocations: 202.3 kB / 376.3 MB, free: 24.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-05/0.2928, allocations: 14.81 kB / 376.3 MB, free: 24.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.438e-05/0.2929, allocations: 29.56 kB / 376.3 MB, free: 24.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.676e-05/0.2929, allocations: 23.5 kB / 376.4 MB, free: 24.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.046e-05/0.2929, allocations: 18.69 kB / 376.4 MB, free: 24.4 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003245/0.2962, allocations: 1.67 MB / 378 MB, free: 23.44 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001641/0.2964, allocations: 164.2 kB / 378.2 MB, free: 23.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.15e-05/0.2965, allocations: 30.28 kB / 378.2 MB, free: 23.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006549/0.2971, allocations: 99.95 kB / 378.3 MB, free: 23.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002/0.2973, allocations: 94.91 kB / 378.4 MB, free: 23.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.815e-05/0.2974, allocations: 31.03 kB / 378.5 MB, free: 23.24 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001116/0.2975, allocations: 139 kB / 378.6 MB, free: 23.15 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.2975, allocations: 4 kB / 378.6 MB, free: 23.14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006564/0.2982, allocations: 130.3 kB / 378.7 MB, free: 23.12 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.0001191/0.2983, allocations: 130.8 kB / 378.9 MB, free: 23.01 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00291/0.3012, allocations: 1.195 MB / 380 MB, free: 22.58 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.3012, allocations: 2.438 kB / 380 MB, free: 22.58 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001077/0.3023, allocations: 382.3 kB / 380.4 MB, free: 22.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/0.3033, allocations: 136.8 kB / 380.6 MB, free: 22.44 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002136/0.3055, allocations: 1.405 MB / 382 MB, free: 21.38 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002453/0.3058, allocations: 0.8099 MB / 382.8 MB, free: 20.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003477/0.3061, allocations: 45.45 kB / 382.8 MB, free: 20.66 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3061, allocations: 3.828 kB / 382.8 MB, free: 20.66 MB / 302.1 MB Notification: Performance of Templates: time 0.009034/0.3152, allocations: 7.12 MB / 389.9 MB, free: 17.84 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches