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.001233/0.001233, allocations: 108.7 kB / 17.75 MB, free: 5.223 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.0013/0.0013, allocations: 190.4 kB / 18.67 MB, free: 4.305 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.378/1.378, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 51.92 kB / 352 MB, free: 3.281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3029/0.3042, allocations: 49.44 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.00346/0.3077, allocations: 2.142 MB / 403.5 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001172/0.3089, allocations: 0.6509 MB / 404.2 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001186/0.3091, allocations: 4 kB / 404.2 MB, free: 6.086 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002945/0.3094, allocations: 43.64 kB / 404.2 MB, free: 6.043 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001504/0.3095, allocations: 47.62 kB / 404.3 MB, free: 5.996 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003638/0.3099, allocations: 131.8 kB / 404.4 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00034/0.3103, allocations: 339.2 kB / 404.7 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001762/0.3104, allocations: 68.36 kB / 404.8 MB, free: 5.469 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002321/0.3107, allocations: 147.5 kB / 404.9 MB, free: 5.324 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002222/0.3109, allocations: 159.4 kB / 405.1 MB, free: 5.168 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.957e-05/0.311, allocations: 28 kB / 405.1 MB, free: 5.141 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.562e-05/0.311, allocations: 32 kB / 405.2 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.734e-05/0.3111, allocations: 83.8 kB / 405.2 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001201/0.3113, allocations: 127.4 kB / 405.4 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002994/0.3116, allocations: 284.1 kB / 405.6 MB, free: 4.629 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.3116, allocations: 0 / 405.6 MB, free: 4.629 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3116, allocations: 4 kB / 405.6 MB, free: 4.625 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.177e-06/0.3116, allocations: 4 kB / 405.7 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.001117/0.3127, allocations: 0.5729 MB / 406.2 MB, free: 4 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.3128, allocations: 11.89 kB / 406.2 MB, free: 3.988 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.18e-05/0.3129, allocations: 32.66 kB / 406.3 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003476/0.3132, allocations: 244.4 kB / 406.5 MB, free: 3.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001887/0.3134, allocations: 134.2 kB / 406.6 MB, free: 3.527 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.751e-05/0.3135, allocations: 27.94 kB / 406.7 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008521/0.3144, allocations: 367.6 kB / 407 MB, free: 3.133 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.3144, allocations: 11.84 kB / 407 MB, free: 3.121 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.26e-05/0.3144, allocations: 8 kB / 407 MB, free: 3.113 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.3144, allocations: 8 kB / 407.1 MB, free: 3.105 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001386/0.3158, allocations: 0.4901 MB / 407.5 MB, free: 2.617 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001914/0.3178, allocations: 0.9916 MB / 408.5 MB, free: 1.555 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001304/0.3191, allocations: 346.7 kB / 408.9 MB, free: 1.211 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005198/0.3196, allocations: 173.2 kB / 409 MB, free: 1.039 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.727e-05/0.3197, allocations: 4.234 kB / 409 MB, free: 1.035 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.942e-05/0.3197, allocations: 42.8 kB / 409.1 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of pre-optimization done (n=28): time 2.194e-06/0.3197, allocations: 0 / 409.1 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of matching and sorting (n=52): time 0.02879/0.3485, allocations: 5.801 MB / 414.9 MB, free: 11.08 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.844e-05/0.3486, allocations: 59.84 kB / 414.9 MB, free: 11.01 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002516/0.3488, allocations: 206.5 kB / 415.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.193e-05/0.3489, allocations: 29.7 kB / 415.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.6e-05/0.349, allocations: 152.6 kB / 415.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001748/0.3492, allocations: 177.4 kB / 415.5 MB, free: 10.44 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002327/0.3494, allocations: 94.25 kB / 415.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.3496, allocations: 334.8 kB / 415.9 MB, free: 10 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0014/0.351, allocations: 460.8 kB / 416.4 MB, free: 9.555 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001434/0.3524, allocations: 0.5216 MB / 416.9 MB, free: 9.016 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002527/0.355, allocations: 0.8032 MB / 417.7 MB, free: 8.199 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.355, allocations: 0 / 417.7 MB, free: 8.199 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002923/0.3579, allocations: 0.9905 MB / 418.7 MB, free: 7.199 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.3579, allocations: 4 kB / 418.7 MB, free: 7.195 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.358, allocations: 7.938 kB / 418.7 MB, free: 7.188 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.358, allocations: 7.938 kB / 418.7 MB, free: 7.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001055/0.359, allocations: 171.7 kB / 418.9 MB, free: 7.012 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.297e-05/0.3591, allocations: 4 kB / 418.9 MB, free: 7.008 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007423/0.3598, allocations: 87.92 kB / 419 MB, free: 6.922 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.775e-05/0.3599, allocations: 16 kB / 419 MB, free: 6.906 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.0002512/0.3601, allocations: 161.7 kB / 419.1 MB, free: 6.738 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.975e-05/0.3603, allocations: 23.72 kB / 419.2 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001467/0.3604, allocations: 55.23 kB / 419.2 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.3604, allocations: 0 / 419.2 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3604, allocations: 0 / 419.2 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002198/0.3606, allocations: 164.7 kB / 419.4 MB, free: 6.477 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.766e-05/0.3607, allocations: 8 kB / 419.4 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007302/0.3615, allocations: 79.89 kB / 419.5 MB, free: 6.391 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002352/0.3617, allocations: 68.34 kB / 419.5 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003425/0.3652, allocations: 1.007 MB / 420.5 MB, free: 5.312 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00428/0.3695, allocations: 1.54 MB / 422.1 MB, free: 3.754 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001322/0.3708, allocations: 463.2 kB / 422.5 MB, free: 3.301 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001867/0.371, allocations: 144.3 kB / 422.7 MB, free: 3.16 MB / 334.1 MB Notification: Performance of Backend: time 2.504e-06/0.371, allocations: 0 / 422.7 MB, free: 3.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002067/0.3731, allocations: 0.7121 MB / 423.4 MB, free: 2.441 MB / 334.1 MB Notification: Performance of SimCode: time 0.001427/0.3745, allocations: 1.032 MB / 424.4 MB, free: 1.359 MB / 334.1 MB Notification: Performance of Templates: time 0.01491/0.3894, allocations: 8.904 MB / 433.3 MB, free: 8.496 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