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.001644/0.001644, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001448/0.001448, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 227.4 MB / 247.5 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00221/0.002211, allocations: 60.48 kB / 308.4 MB, free: 15.94 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1147, allocations: 50.54 MB / 358.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003756/0.1185, allocations: 2.141 MB / 361 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00118/0.1197, allocations: 0.6938 MB / 361.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001117/0.1199, allocations: 4 kB / 361.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002694/0.1202, allocations: 43.64 kB / 361.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000133/0.1203, allocations: 55.62 kB / 361.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003527/0.1207, allocations: 119.8 kB / 362 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003438/0.121, allocations: 339.2 kB / 362.3 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000191/0.1212, allocations: 76.3 kB / 362.4 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002765/0.1215, allocations: 151.5 kB / 362.5 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002169/0.1217, allocations: 159.4 kB / 362.7 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.47e-05/0.1218, allocations: 28 kB / 362.7 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.447e-05/0.1218, allocations: 32 kB / 362.7 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.459e-05/0.1219, allocations: 79.8 kB / 362.8 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001088/0.1221, allocations: 123.4 kB / 362.9 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002883/0.1224, allocations: 279.1 kB / 363.2 MB, free: 9.066 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.1224, allocations: 7.938 kB / 363.2 MB, free: 9.059 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.1224, allocations: 0 / 363.2 MB, free: 9.059 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.1224, allocations: 0 / 363.2 MB, free: 9.059 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.001069/0.1235, allocations: 0.5726 MB / 363.8 MB, free: 8.438 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.1235, allocations: 16.02 kB / 363.8 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.174e-05/0.1236, allocations: 28.66 kB / 363.8 MB, free: 8.395 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004141/0.124, allocations: 260 kB / 364.1 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000188/0.1242, allocations: 134.2 kB / 364.2 MB, free: 7.957 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.889e-05/0.1243, allocations: 27.94 kB / 364.2 MB, free: 7.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007622/0.125, allocations: 363.5 kB / 364.6 MB, free: 7.559 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.1251, allocations: 4 kB / 364.6 MB, free: 7.555 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.283e-05/0.1251, allocations: 11.98 kB / 364.6 MB, free: 7.543 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.1251, allocations: 4 kB / 364.6 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001136/0.1263, allocations: 497.9 kB / 365.1 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001679/0.128, allocations: 1.015 MB / 366.1 MB, free: 5.965 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001034/0.129, allocations: 336.7 kB / 366.4 MB, free: 5.629 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004237/0.1294, allocations: 177.2 kB / 366.6 MB, free: 5.453 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.956e-05/0.1295, allocations: 8.172 kB / 366.6 MB, free: 5.445 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.218e-05/0.1295, allocations: 30.8 kB / 366.6 MB, free: 5.406 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.332e-06/0.1295, allocations: 0 / 366.6 MB, free: 5.406 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.2266/0.3562, allocations: 5.787 MB / 372.4 MB, free: 20.78 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.177e-05/0.3563, allocations: 57.19 kB / 372.5 MB, free: 20.72 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003538/0.3566, allocations: 205.4 kB / 372.7 MB, free: 20.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.009e-05/0.3567, allocations: 35.06 kB / 372.7 MB, free: 20.58 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.3568, allocations: 145.4 kB / 372.9 MB, free: 20.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001838/0.357, allocations: 177.9 kB / 373 MB, free: 20.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002611/0.3573, allocations: 90.06 kB / 373.1 MB, free: 20.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.3574, allocations: 336.3 kB / 373.5 MB, free: 20.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001319/0.3587, allocations: 468 kB / 373.9 MB, free: 20.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00126/0.36, allocations: 0.5146 MB / 374.4 MB, free: 19.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002222/0.3622, allocations: 0.8068 MB / 375.2 MB, free: 19.62 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.3623, allocations: 2.953 kB / 375.2 MB, free: 19.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002741/0.365, allocations: 0.9909 MB / 376.2 MB, free: 19.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.747e-05/0.3651, allocations: 9.906 kB / 376.2 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.3651, allocations: 2.078 kB / 376.2 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.069e-05/0.3651, allocations: 7.594 kB / 376.2 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001158/0.3663, allocations: 167.1 kB / 376.4 MB, free: 19.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.427e-05/0.3663, allocations: 6.891 kB / 376.4 MB, free: 19.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007675/0.3671, allocations: 85.8 kB / 376.5 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.142e-05/0.3672, allocations: 17.28 kB / 376.5 MB, free: 19.25 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.noWphase,kinematicPTP.moving[1]) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002356/0.3674, allocations: 160.6 kB / 376.7 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.519e-05/0.3675, allocations: 29.09 kB / 376.7 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001064/0.3676, allocations: 52.06 kB / 376.7 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.3677, allocations: 5.625 kB / 376.8 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.298e-05/0.3677, allocations: 1.281 kB / 376.8 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.378e-06/0.3677, allocations: 2.25 kB / 376.8 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004455/0.3722, allocations: 1.872 MB / 378.6 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.592e-05/0.3722, allocations: 12.38 kB / 378.6 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007399/0.373, allocations: 148.9 kB / 378.8 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.476e-05/0.373, allocations: 14.12 kB / 378.8 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.067e-05/0.3731, allocations: 22 kB / 378.8 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.727e-05/0.3731, allocations: 16.11 kB / 378.8 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.046e-05/0.3731, allocations: 15.56 kB / 378.9 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002617/0.3757, allocations: 1.227 MB / 380.1 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002321/0.376, allocations: 143.7 kB / 380.2 MB, free: 17.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.245e-05/0.3761, allocations: 26.75 kB / 380.2 MB, free: 17.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000561/0.3767, allocations: 70.55 kB / 380.3 MB, free: 17.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002281/0.3769, allocations: 90.52 kB / 380.4 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.211e-05/0.377, allocations: 18.72 kB / 380.4 MB, free: 17.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001654/0.3771, allocations: 147.3 kB / 380.6 MB, free: 17.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3771, allocations: 0 / 380.6 MB, free: 17.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005604/0.3777, allocations: 97.5 kB / 380.7 MB, free: 17.03 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 (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.0001741/0.3779, allocations: 127.2 kB / 380.8 MB, free: 16.92 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003479/0.3814, allocations: 0.8649 MB / 381.7 MB, free: 16.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.88e-05/0.3814, allocations: 2.25 kB / 381.7 MB, free: 16.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001791/0.3832, allocations: 327.5 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.001419/0.3847, allocations: 63.39 kB / 382 MB, free: 16.51 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003608/0.3883, allocations: 1.007 MB / 383 MB, free: 15.78 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005367/0.3889, allocations: 0.7822 MB / 383.8 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006853/0.3896, allocations: 85.19 kB / 383.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003375/0.3899, allocations: 30.8 kB / 383.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of SimCode: time 1.222e-06/0.39, allocations: 0 / 383.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of Templates: time 0.01734/0.4073, allocations: 5.688 MB / 389.6 MB, free: 13.09 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches