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.001551/0.001551, allocations: 114.9 kB / 17.74 MB, free: 5.328 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.001883/0.001883, allocations: 188.5 kB / 18.67 MB, free: 4.402 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.345/1.345, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009254/0.0009255, allocations: 47.92 kB / 351.9 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2398/0.2407, allocations: 49.43 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003155/0.2439, allocations: 2.147 MB / 403.5 MB, free: 6.738 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001072/0.245, allocations: 0.6471 MB / 404.2 MB, free: 6.086 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000108/0.2451, allocations: 7.938 kB / 404.2 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002481/0.2454, allocations: 43.7 kB / 404.2 MB, free: 6.035 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001283/0.2455, allocations: 51.56 kB / 404.3 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003286/0.2459, allocations: 123.8 kB / 404.4 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003202/0.2462, allocations: 347.2 kB / 404.7 MB, free: 5.523 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001614/0.2464, allocations: 64.3 kB / 404.8 MB, free: 5.461 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001816/0.2466, allocations: 151.5 kB / 404.9 MB, free: 5.312 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002132/0.2468, allocations: 151.4 kB / 405.1 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.194e-05/0.2469, allocations: 35.94 kB / 405.1 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.256e-05/0.2469, allocations: 28 kB / 405.2 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.261e-05/0.247, allocations: 83.8 kB / 405.2 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001044/0.2471, allocations: 123.4 kB / 405.4 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002938/0.2474, allocations: 288.2 kB / 405.6 MB, free: 4.621 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.2474, allocations: 0 / 405.6 MB, free: 4.621 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2474, allocations: 0 / 405.6 MB, free: 4.621 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.2474, 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.001021/0.2485, allocations: 0.569 MB / 406.2 MB, free: 4.004 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.2485, allocations: 19.89 kB / 406.2 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.753e-05/0.2486, allocations: 32.66 kB / 406.3 MB, free: 3.953 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003079/0.2489, allocations: 253.7 kB / 406.5 MB, free: 3.668 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001829/0.2491, allocations: 134.2 kB / 406.6 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.211e-05/0.2492, allocations: 27.94 kB / 406.7 MB, free: 3.488 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007747/0.2499, allocations: 367.5 kB / 407 MB, free: 3.121 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.838e-05/0.25, allocations: 3.906 kB / 407 MB, free: 3.117 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.025e-05/0.25, allocations: 15.94 kB / 407 MB, free: 3.102 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.25, allocations: 4 kB / 407 MB, free: 3.098 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001266/0.2513, allocations: 493.9 kB / 407.5 MB, free: 2.617 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001529/0.2528, allocations: 1.003 MB / 408.5 MB, free: 1.543 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001116/0.254, allocations: 339.1 kB / 408.9 MB, free: 1.203 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004728/0.2544, allocations: 177.2 kB / 409 MB, free: 1.027 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.641e-05/0.2545, allocations: 4.234 kB / 409 MB, free: 1.023 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.796e-05/0.2545, allocations: 30.8 kB / 409.1 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of pre-optimization done (n=28): time 1.723e-06/0.2545, allocations: 4 kB / 409.1 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of matching and sorting (n=52): time 0.02566/0.2802, allocations: 5.807 MB / 414.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.203e-05/0.2803, allocations: 63.78 kB / 414.9 MB, free: 11 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002242/0.2805, allocations: 202.5 kB / 415.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.922e-05/0.2805, allocations: 37.7 kB / 415.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.466e-05/0.2806, allocations: 148.6 kB / 415.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.2808, allocations: 181.4 kB / 415.5 MB, free: 10.42 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001958/0.281, allocations: 82.25 kB / 415.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.2811, allocations: 342.8 kB / 415.9 MB, free: 9.992 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001242/0.2823, allocations: 464.8 kB / 416.4 MB, free: 9.539 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001285/0.2836, allocations: 0.5138 MB / 416.9 MB, free: 9.008 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002243/0.2859, allocations: 0.8071 MB / 417.7 MB, free: 8.188 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2859, allocations: 0 / 417.7 MB, free: 8.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002632/0.2885, allocations: 0.9865 MB / 418.7 MB, free: 7.191 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.2886, allocations: 11.94 kB / 418.7 MB, free: 7.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.2886, allocations: 8.062 kB / 418.7 MB, free: 7.172 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.2886, allocations: 4 kB / 418.7 MB, free: 7.168 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009437/0.2896, allocations: 171.7 kB / 418.9 MB, free: 7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.2896, allocations: 4 kB / 418.9 MB, free: 6.996 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006496/0.2902, allocations: 83.89 kB / 419 MB, free: 6.914 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.368e-05/0.2903, allocations: 16 kB / 419 MB, free: 6.898 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.0002077/0.2905, allocations: 157.8 kB / 419.1 MB, free: 6.734 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.598e-05/0.2906, allocations: 31.59 kB / 419.2 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001189/0.2907, allocations: 51.3 kB / 419.2 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.2907, allocations: 4 kB / 419.2 MB, free: 6.645 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.2908, allocations: 0 / 419.2 MB, free: 6.645 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.2908, allocations: 0 / 419.2 MB, free: 6.645 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003758/0.2945, allocations: 1.874 MB / 421.1 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.537e-06/0.2945, allocations: 12 kB / 421.1 MB, free: 4.594 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006305/0.2952, allocations: 147.8 kB / 421.2 MB, free: 4.449 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.239e-05/0.2952, allocations: 15.94 kB / 421.3 MB, free: 4.434 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.991e-05/0.2953, allocations: 20 kB / 421.3 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.036e-05/0.2953, allocations: 15.94 kB / 421.3 MB, free: 4.398 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.506e-06/0.2953, allocations: 11.94 kB / 421.3 MB, free: 4.387 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002545/0.2978, allocations: 1.229 MB / 422.5 MB, free: 3.031 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001459/0.298, allocations: 144.8 kB / 422.7 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.339e-05/0.2981, allocations: 24 kB / 422.7 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004938/0.2986, allocations: 75.91 kB / 422.8 MB, free: 2.773 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001904/0.2988, allocations: 87.67 kB / 422.9 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.04e-05/0.2988, allocations: 20 kB / 422.9 MB, free: 2.668 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001499/0.299, allocations: 144.3 kB / 423 MB, free: 2.527 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.299, allocations: 0 / 423 MB, free: 2.527 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004672/0.2994, allocations: 96 kB / 423.1 MB, free: 2.434 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.0001484/0.2996, allocations: 131 kB / 423.2 MB, free: 2.297 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002213/0.3018, allocations: 0.8687 MB / 424.1 MB, free: 1.422 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.3018, allocations: 0 / 424.1 MB, free: 1.422 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009036/0.3027, allocations: 321.8 kB / 424.4 MB, free: 1.109 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005786/0.3033, allocations: 66.11 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.002007/0.3053, allocations: 1.039 MB / 425.5 MB, free: 15.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003442/0.3057, allocations: 0.7879 MB / 426.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002544/0.306, allocations: 39.31 kB / 426.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.306, allocations: 4 kB / 426.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of Templates: time 0.007781/0.3138, allocations: 5.636 MB / 432 MB, free: 9.41 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