Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.Continuous,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.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_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001429/0.001429, allocations: 114.9 kB / 17.74 MB, free: 5.293 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.00148/0.00148, allocations: 188.4 kB / 18.67 MB, free: 4.375 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.54/1.54, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 39.94 kB / 351.9 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.304, allocations: 49.43 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003604/0.3077, allocations: 2.152 MB / 403.5 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001212/0.3089, allocations: 0.651 MB / 404.2 MB, free: 6.074 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.3091, allocations: 3.938 kB / 404.2 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002919/0.3094, allocations: 43.7 kB / 404.2 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001394/0.3095, allocations: 55.56 kB / 404.3 MB, free: 5.973 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003993/0.31, allocations: 115.8 kB / 404.4 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003766/0.3103, allocations: 343.2 kB / 404.7 MB, free: 5.523 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001934/0.3105, allocations: 72.34 kB / 404.8 MB, free: 5.453 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002438/0.3108, allocations: 147.5 kB / 404.9 MB, free: 5.309 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002386/0.311, allocations: 151.4 kB / 405.1 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.215e-05/0.3111, allocations: 32 kB / 405.1 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.162e-05/0.3112, allocations: 28 kB / 405.1 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.881e-05/0.3113, allocations: 87.78 kB / 405.2 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001258/0.3114, allocations: 123.4 kB / 405.4 MB, free: 4.895 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003424/0.3118, allocations: 284.2 kB / 405.6 MB, free: 4.621 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.3118, allocations: 0 / 405.6 MB, free: 4.621 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.614e-06/0.3118, allocations: 0 / 405.6 MB, free: 4.621 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.3118, allocations: 0 / 405.6 MB, free: 4.621 MB / 318.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.00117/0.313, allocations: 0.5768 MB / 406.2 MB, free: 3.996 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.313, allocations: 19.83 kB / 406.2 MB, free: 3.977 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.961e-05/0.3131, allocations: 28.66 kB / 406.3 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003983/0.3135, allocations: 254 kB / 406.5 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002126/0.3137, allocations: 130.2 kB / 406.6 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.038e-05/0.3138, allocations: 35.92 kB / 406.7 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008966/0.3147, allocations: 359.6 kB / 407 MB, free: 3.121 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.964e-05/0.3147, allocations: 11.78 kB / 407 MB, free: 3.109 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.658e-05/0.3148, allocations: 12 kB / 407 MB, free: 3.098 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.3148, allocations: 4 kB / 407 MB, free: 3.094 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001322/0.3161, allocations: 497.9 kB / 407.5 MB, free: 2.609 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001679/0.3178, allocations: 0.9994 MB / 408.5 MB, free: 1.539 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001254/0.3191, allocations: 339.1 kB / 408.9 MB, free: 1.199 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005184/0.3196, allocations: 177.2 kB / 409 MB, free: 1.023 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.495e-05/0.3197, allocations: 4.234 kB / 409 MB, free: 1.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.77e-05/0.3197, allocations: 34.78 kB / 409.1 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of pre-optimization done (n=28): time 2.154e-06/0.3197, allocations: 0 / 409.1 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of matching and sorting (n=52): time 0.02817/0.3479, allocations: 5.809 MB / 414.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.799e-05/0.348, allocations: 55.84 kB / 414.9 MB, free: 11 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002744/0.3483, allocations: 206.5 kB / 415.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.09e-05/0.3483, allocations: 33.7 kB / 415.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.3484, allocations: 156.6 kB / 415.3 MB, free: 10.59 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001784/0.3486, allocations: 177.4 kB / 415.5 MB, free: 10.42 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002115/0.3488, allocations: 86.25 kB / 415.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.349, allocations: 334.8 kB / 415.9 MB, free: 9.992 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001326/0.3503, allocations: 468.8 kB / 416.4 MB, free: 9.535 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001356/0.3517, allocations: 0.5138 MB / 416.9 MB, free: 9.004 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002391/0.3541, allocations: 0.8071 MB / 417.7 MB, free: 8.184 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.3541, allocations: 0 / 417.7 MB, free: 8.184 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00287/0.357, allocations: 0.9944 MB / 418.7 MB, free: 7.18 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.677e-05/0.3571, allocations: 7.938 kB / 418.7 MB, free: 7.172 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.3571, allocations: 0 / 418.7 MB, free: 7.172 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.569e-05/0.3571, allocations: 7.938 kB / 418.7 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001023/0.3581, allocations: 167.7 kB / 418.9 MB, free: 7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.416e-05/0.3582, allocations: 4 kB / 418.9 MB, free: 6.996 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007042/0.3589, allocations: 87.91 kB / 419 MB, free: 6.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.282e-05/0.3589, allocations: 16 kB / 419 MB, free: 6.895 MB / 334.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.0002681/0.3592, allocations: 161.7 kB / 419.1 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.386e-05/0.3593, allocations: 27.66 kB / 419.2 MB, free: 6.699 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001403/0.3595, allocations: 47.31 kB / 419.2 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.3595, allocations: 8 kB / 419.2 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.3595, allocations: 0 / 419.2 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.3595, allocations: 3.984 kB / 419.2 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00417/0.3637, allocations: 1.874 MB / 421.1 MB, free: 4.598 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/0.3637, allocations: 8 kB / 421.1 MB, free: 4.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006726/0.3644, allocations: 144.4 kB / 421.2 MB, free: 4.449 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.761e-05/0.3644, allocations: 19.94 kB / 421.3 MB, free: 4.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.335e-05/0.3645, allocations: 20 kB / 421.3 MB, free: 4.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-05/0.3645, allocations: 19.92 kB / 421.3 MB, free: 4.391 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.187e-06/0.3645, allocations: 11.94 kB / 421.3 MB, free: 4.379 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002861/0.3674, allocations: 1.217 MB / 422.5 MB, free: 3.035 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002004/0.3676, allocations: 152.8 kB / 422.7 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.1e-05/0.3677, allocations: 27.97 kB / 422.7 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005164/0.3682, allocations: 63.92 kB / 422.8 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001795/0.3684, allocations: 87.67 kB / 422.8 MB, free: 2.691 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.5e-05/0.3684, allocations: 24 kB / 422.9 MB, free: 2.668 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001701/0.3686, allocations: 148.3 kB / 423 MB, free: 2.523 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.3686, allocations: 4 kB / 423 MB, free: 2.52 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004955/0.3691, allocations: 96 kB / 423.1 MB, free: 2.426 MB / 334.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.0001526/0.3693, allocations: 123.1 kB / 423.2 MB, free: 2.297 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002398/0.3717, allocations: 0.8727 MB / 424.1 MB, free: 1.418 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.3717, allocations: 0 / 424.1 MB, free: 1.418 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009379/0.3727, allocations: 321.7 kB / 424.4 MB, free: 1.105 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006665/0.3733, allocations: 58.48 kB / 424.5 MB, free: 1.051 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002184/0.3755, allocations: 1.046 MB / 425.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000368/0.3759, allocations: 0.7839 MB / 426.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002628/0.3762, allocations: 35.44 kB / 426.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3762, allocations: 3.938 kB / 426.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of Templates: time 0.008564/0.3848, allocations: 5.614 MB / 432 MB, free: 9.438 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches