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.001603/0.001603, allocations: 121.7 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001941/0.001941, allocations: 212.8 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.609/1.609, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 63.89 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2985/0.2997, allocations: 50.53 MB / 409.9 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003222/0.303, allocations: 2.163 MB / 412.1 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00115/0.3042, allocations: 0.6822 MB / 412.7 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.3043, allocations: 4 kB / 412.7 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002867/0.3046, allocations: 43.64 kB / 412.8 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000129/0.3047, allocations: 51.62 kB / 412.8 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000337/0.3051, allocations: 127.7 kB / 413 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000365/0.3054, allocations: 339.2 kB / 413.3 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001759/0.3056, allocations: 72.3 kB / 413.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002752/0.3059, allocations: 151.5 kB / 413.5 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002143/0.3061, allocations: 159.4 kB / 413.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.18e-05/0.3062, allocations: 28 kB / 413.7 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.882e-05/0.3063, allocations: 28 kB / 413.7 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.047e-05/0.3064, allocations: 83.8 kB / 413.8 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.3065, allocations: 119.4 kB / 413.9 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002873/0.3068, allocations: 286.9 kB / 414.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3068, allocations: 0 / 414.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3068, allocations: 0 / 414.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.3068, allocations: 0 / 414.2 MB, free: 13.29 MB / 334.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.001083/0.3079, allocations: 0.5816 MB / 414.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.3079, allocations: 16.03 kB / 414.8 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.391e-05/0.308, allocations: 28.66 kB / 414.8 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003363/0.3084, allocations: 252.5 kB / 415.1 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001966/0.3086, allocations: 130.2 kB / 415.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.774e-05/0.3086, allocations: 31.84 kB / 415.2 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008198/0.3095, allocations: 367.5 kB / 415.6 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.3095, allocations: 0 / 415.6 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.275e-05/0.3095, allocations: 12 kB / 415.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.298e-06/0.3095, allocations: 7.984 kB / 415.6 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001274/0.3108, allocations: 0.4901 MB / 416.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00161/0.3124, allocations: 0.9916 MB / 417.1 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001199/0.3137, allocations: 343 kB / 417.4 MB, free: 9.863 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004878/0.3142, allocations: 173.2 kB / 417.6 MB, free: 9.691 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.146e-05/0.3142, allocations: 4.234 kB / 417.6 MB, free: 9.688 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/0.3142, allocations: 30.8 kB / 417.6 MB, free: 9.648 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 2.074e-06/0.3142, allocations: 0 / 417.6 MB, free: 9.648 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.02746/0.3417, allocations: 5.809 MB / 423.4 MB, free: 3.742 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.765e-05/0.3418, allocations: 55.84 kB / 423.5 MB, free: 3.676 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002685/0.3421, allocations: 206.2 kB / 423.7 MB, free: 3.465 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.52e-05/0.3421, allocations: 33.7 kB / 423.7 MB, free: 3.426 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.546e-05/0.3422, allocations: 148.7 kB / 423.9 MB, free: 3.277 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/0.3424, allocations: 173.5 kB / 424 MB, free: 3.105 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000205/0.3426, allocations: 94.09 kB / 424.1 MB, free: 3.008 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.3427, allocations: 334.8 kB / 424.5 MB, free: 2.672 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001259/0.344, allocations: 464.8 kB / 424.9 MB, free: 2.219 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001317/0.3453, allocations: 0.5216 MB / 425.4 MB, free: 1.68 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002337/0.3477, allocations: 0.8071 MB / 426.2 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3477, allocations: 0 / 426.2 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002793/0.3505, allocations: 0.9904 MB / 427.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.556e-05/0.3505, allocations: 7.938 kB / 427.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.3505, allocations: 0 / 427.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.234e-05/0.3506, allocations: 12.06 kB / 427.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009623/0.3515, allocations: 163.8 kB / 427.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.36e-05/0.3516, allocations: 7.938 kB / 427.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006819/0.3523, allocations: 87.88 kB / 427.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.14e-05/0.3523, allocations: 20 kB / 427.5 MB, free: 15.57 MB / 350.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.0002333/0.3526, allocations: 153.7 kB / 427.7 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.098e-05/0.3527, allocations: 31.64 kB / 427.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000131/0.3528, allocations: 47.31 kB / 427.8 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.702e-06/0.3528, allocations: 4 kB / 427.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.989e-06/0.3528, allocations: 0 / 427.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.3528, allocations: 7.984 kB / 427.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004007/0.3568, allocations: 1.874 MB / 429.6 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.098e-05/0.3569, allocations: 20.05 kB / 429.7 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006363/0.3575, allocations: 139.8 kB / 429.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-05/0.3575, allocations: 15.94 kB / 429.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.624e-05/0.3576, allocations: 20 kB / 429.8 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.189e-05/0.3576, allocations: 15.94 kB / 429.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-05/0.3576, allocations: 15.92 kB / 429.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002788/0.3604, allocations: 1.217 MB / 431.1 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001861/0.3606, allocations: 148.8 kB / 431.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.629e-05/0.3607, allocations: 20 kB / 431.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005235/0.3612, allocations: 71.91 kB / 431.3 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001882/0.3614, allocations: 83.73 kB / 431.4 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.816e-05/0.3615, allocations: 24 kB / 431.4 MB, free: 11.35 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001622/0.3616, allocations: 156.2 kB / 431.6 MB, free: 11.2 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3616, allocations: 0 / 431.6 MB, free: 11.2 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004896/0.3621, allocations: 96 kB / 431.7 MB, free: 11.1 MB / 350.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.0001787/0.3623, allocations: 131 kB / 431.8 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002296/0.3646, allocations: 0.8687 MB / 432.7 MB, free: 10.1 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.3646, allocations: 0 / 432.7 MB, free: 10.1 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009203/0.3656, allocations: 321.7 kB / 433 MB, free: 9.785 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006227/0.3662, allocations: 66.88 kB / 433 MB, free: 9.727 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002086/0.3683, allocations: 1.038 MB / 434.1 MB, free: 8.547 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003447/0.3687, allocations: 0.7839 MB / 434.9 MB, free: 7.734 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000253/0.3689, allocations: 35.44 kB / 434.9 MB, free: 7.699 MB / 350.1 MB Notification: Performance of SimCode: time 2.114e-06/0.3689, allocations: 4 kB / 434.9 MB, free: 7.695 MB / 350.1 MB Notification: Performance of Templates: time 0.008055/0.377, allocations: 5.605 MB / 440.5 MB, free: 2.121 MB / 350.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