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.001068/0.001068, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001156/0.001156, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.337/1.337, allocations: 227.4 MB / 246.9 MB, free: 8.91 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 63.23 kB / 306.9 MB, free: 0.8125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1196, allocations: 50.54 MB / 357.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.004387/0.124, allocations: 2.203 MB / 359.6 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001765/0.1258, allocations: 0.6783 MB / 360.3 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002819/0.1261, allocations: 0 / 360.3 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003482/0.1266, allocations: 39.77 kB / 360.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002298/0.1268, allocations: 39.75 kB / 360.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004411/0.1273, allocations: 111.8 kB / 360.5 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004423/0.1277, allocations: 315.2 kB / 360.8 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001821/0.1279, allocations: 72.33 kB / 360.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002856/0.1282, allocations: 131.5 kB / 361 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002049/0.1284, allocations: 147.4 kB / 361.2 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.713e-05/0.1285, allocations: 16 kB / 361.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.615e-05/0.1285, allocations: 20 kB / 361.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.883e-05/0.1286, allocations: 79.77 kB / 361.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001285/0.1288, allocations: 115.4 kB / 361.4 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001911/0.129, allocations: 191.9 kB / 361.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.129, allocations: 0 / 361.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.129, allocations: 0 / 361.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.129, allocations: 0 / 361.6 MB, free: 10.12 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.001185/0.1302, allocations: 0.5884 MB / 362.2 MB, free: 9.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.1302, allocations: 8.031 kB / 362.2 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.302e-05/0.1303, allocations: 36.59 kB / 362.2 MB, free: 9.438 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003015/0.1306, allocations: 251.8 kB / 362.4 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001902/0.1308, allocations: 130.2 kB / 362.6 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.174e-05/0.1309, allocations: 27.94 kB / 362.6 MB, free: 8.984 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008156/0.1317, allocations: 367.5 kB / 363 MB, free: 8.613 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.286e-05/0.1318, allocations: 7.938 kB / 363 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.259e-05/0.1318, allocations: 8 kB / 363 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.1318, allocations: 8 kB / 363 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001283/0.1331, allocations: 497.9 kB / 363.5 MB, free: 8.102 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001685/0.1348, allocations: 1.003 MB / 364.5 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001067/0.1359, allocations: 351 kB / 364.8 MB, free: 6.672 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004431/0.1363, allocations: 173.9 kB / 365 MB, free: 6.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.419e-05/0.1364, allocations: 240 / 365 MB, free: 6.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.544e-05/0.1364, allocations: 34.8 kB / 365 MB, free: 6.457 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.122e-06/0.1364, allocations: 4 kB / 365 MB, free: 6.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.02651/0.1629, allocations: 5.806 MB / 370.8 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/0.163, allocations: 55.84 kB / 370.9 MB, free: 500 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002724/0.1633, allocations: 195.7 kB / 371.1 MB, free: 296 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.681e-05/0.1634, allocations: 33.7 kB / 371.1 MB, free: 256 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001217/0.1635, allocations: 152.6 kB / 371.3 MB, free: 96 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.1846/0.3481, allocations: 169.5 kB / 371.4 MB, free: 21.65 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003001/0.3485, allocations: 85.09 kB / 371.5 MB, free: 21.63 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.3486, allocations: 339.9 kB / 371.8 MB, free: 21.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001408/0.35, allocations: 468.1 kB / 372.3 MB, free: 21.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001407/0.3514, allocations: 0.5136 MB / 372.8 MB, free: 21.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002392/0.3539, allocations: 0.8047 MB / 373.6 MB, free: 20.72 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.6e-06/0.3539, allocations: 1.812 kB / 373.6 MB, free: 20.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002958/0.3568, allocations: 0.9904 MB / 374.6 MB, free: 20.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.955e-05/0.3569, allocations: 7.547 kB / 374.6 MB, free: 20.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.3569, allocations: 2.031 kB / 374.6 MB, free: 20.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.376e-05/0.3569, allocations: 3.844 kB / 374.6 MB, free: 20.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001058/0.358, allocations: 170.1 kB / 374.8 MB, free: 20.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.692e-05/0.358, allocations: 8.219 kB / 374.8 MB, free: 20.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007084/0.3587, allocations: 83.34 kB / 374.9 MB, free: 20.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.801e-05/0.3588, allocations: 20.75 kB / 374.9 MB, free: 20.36 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.0002156/0.359, allocations: 158.2 kB / 375 MB, free: 20.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.885e-05/0.3591, allocations: 30.53 kB / 375.1 MB, free: 20.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00011/0.3592, allocations: 48.98 kB / 375.1 MB, free: 20.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.3593, allocations: 4.781 kB / 375.1 MB, free: 20.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.3593, allocations: 12.92 kB / 375.1 MB, free: 20.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.3593, allocations: 2.766 kB / 375.1 MB, free: 20.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004125/0.3634, allocations: 1.876 MB / 377 MB, free: 19.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.567e-05/0.3635, allocations: 8.344 kB / 377 MB, free: 19.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006827/0.3642, allocations: 147.5 kB / 377.2 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.651e-05/0.3642, allocations: 11.09 kB / 377.2 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.645e-05/0.3642, allocations: 20.66 kB / 377.2 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.607e-05/0.3643, allocations: 17.08 kB / 377.2 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.059e-05/0.3643, allocations: 17.12 kB / 377.2 MB, free: 19.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00265/0.3669, allocations: 1.235 MB / 378.5 MB, free: 18.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001852/0.3671, allocations: 139.3 kB / 378.6 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.121e-05/0.3672, allocations: 23.34 kB / 378.6 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005358/0.3678, allocations: 74.73 kB / 378.7 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002048/0.368, allocations: 85.86 kB / 378.8 MB, free: 18.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.563e-05/0.368, allocations: 23.59 kB / 378.8 MB, free: 18.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001726/0.3682, allocations: 146.8 kB / 378.9 MB, free: 18.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3682, allocations: 1.125 kB / 379 MB, free: 18.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005524/0.3688, allocations: 100.2 kB / 379 MB, free: 18.11 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.0001529/0.3689, allocations: 129.6 kB / 379.2 MB, free: 18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002376/0.3713, allocations: 0.851 MB / 380 MB, free: 17.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/0.3713, allocations: 0 / 380 MB, free: 17.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009752/0.3723, allocations: 330.2 kB / 380.3 MB, free: 17.63 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007249/0.3731, allocations: 56.48 kB / 380.4 MB, free: 17.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002398/0.3755, allocations: 1.172 MB / 381.6 MB, free: 16.72 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000319/0.3758, allocations: 0.7836 MB / 382.4 MB, free: 16.01 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002895/0.3761, allocations: 33.94 kB / 382.4 MB, free: 16 MB / 302.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3761, allocations: 0 / 382.4 MB, free: 16 MB / 302.1 MB Notification: Performance of Templates: time 0.01121/0.3873, allocations: 5.55 MB / 387.9 MB, free: 14.16 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/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