Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0017/0.0017, allocations: 113.7 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002254/0.002254, allocations: 206.8 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.659/1.659, allocations: 227.4 MB / 247.6 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 63.89 kB / 359.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3075/0.309, allocations: 50.55 MB / 409.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003725/0.3128, allocations: 2.358 MB / 412.3 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001652/0.3144, allocations: 0.8338 MB / 413.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001735/0.3146, allocations: 7.938 kB / 413.1 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002994/0.315, allocations: 51.58 kB / 413.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001959/0.3152, allocations: 55.56 kB / 413.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005827/0.3158, allocations: 175.6 kB / 413.4 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004514/0.3162, allocations: 383.5 kB / 413.8 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002352/0.3165, allocations: 111.8 kB / 413.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003511/0.3168, allocations: 163.5 kB / 414 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002385/0.3171, allocations: 175.3 kB / 414.2 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.295e-05/0.3172, allocations: 32 kB / 414.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.067e-05/0.3172, allocations: 39.94 kB / 414.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000106/0.3173, allocations: 91.78 kB / 414.4 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001367/0.3175, allocations: 147.2 kB / 414.5 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003774/0.3179, allocations: 339.9 kB / 414.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.3179, allocations: 8 kB / 414.8 MB, free: 12.64 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.3179, allocations: 0 / 414.8 MB, free: 12.64 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.3179, allocations: 0 / 414.8 MB, free: 12.64 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001238/0.3192, allocations: 0.62 MB / 415.5 MB, free: 11.97 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.3192, allocations: 8.031 kB / 415.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.065e-05/0.3193, allocations: 36.56 kB / 415.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000498/0.3198, allocations: 284.2 kB / 415.8 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002048/0.32, allocations: 134.3 kB / 415.9 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.545e-05/0.3201, allocations: 32.38 kB / 415.9 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001361/0.3215, allocations: 0.5699 MB / 416.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.097e-05/0.3215, allocations: 4 kB / 416.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.515e-05/0.3215, allocations: 8 kB / 416.5 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.3216, allocations: 8 kB / 416.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001429/0.323, allocations: 0.5112 MB / 417 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001652/0.3247, allocations: 1.006 MB / 418.1 MB, free: 9.223 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001694/0.3264, allocations: 0.5024 MB / 418.6 MB, free: 8.684 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006622/0.327, allocations: 266.9 kB / 418.8 MB, free: 8.414 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.893e-05/0.3271, allocations: 16.12 kB / 418.8 MB, free: 8.398 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.753e-05/0.3272, allocations: 38.56 kB / 418.9 MB, free: 8.352 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 4.548e-06/0.3272, allocations: 0 / 418.9 MB, free: 8.352 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.04113/0.3683, allocations: 5.713 MB / 424.6 MB, free: 2.629 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001529/0.3685, allocations: 149 kB / 424.7 MB, free: 2.453 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003076/0.3688, allocations: 201 kB / 424.9 MB, free: 2.246 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001003/0.369, allocations: 37.7 kB / 425 MB, free: 2.203 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.3691, allocations: 149.5 kB / 425.1 MB, free: 2.051 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002321/0.3693, allocations: 193.3 kB / 425.3 MB, free: 1.859 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003269/0.3697, allocations: 106.7 kB / 425.4 MB, free: 1.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.3698, allocations: 347.2 kB / 425.7 MB, free: 1.402 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0017/0.3715, allocations: 0.6149 MB / 426.4 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00191/0.3734, allocations: 0.7925 MB / 427.1 MB, free: 15.92 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003303/0.3768, allocations: 1.247 MB / 428.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.403e-06/0.3768, allocations: 3.938 kB / 428.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003828/0.3806, allocations: 1.398 MB / 429.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.628e-05/0.3807, allocations: 8 kB / 429.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.426e-05/0.3807, allocations: 4 kB / 429.8 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.123e-05/0.3808, allocations: 12 kB / 429.8 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001416/0.3822, allocations: 211.7 kB / 430 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.464e-05/0.3822, allocations: 15.92 kB / 430 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001017/0.3833, allocations: 99.73 kB / 430.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001001/0.3834, allocations: 28 kB / 430.2 MB, free: 12.81 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.0003964/0.3838, allocations: 181.5 kB / 430.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003848/0.3842, allocations: 161.1 kB / 430.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001745/0.3844, allocations: 67.3 kB / 430.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.166e-05/0.3844, allocations: 12 kB / 430.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.3844, allocations: 0 / 430.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.928e-06/0.3844, allocations: 3.984 kB / 430.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005325/0.3897, allocations: 2.163 MB / 432.7 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.609e-05/0.3898, allocations: 8.938 kB / 432.8 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008507/0.3907, allocations: 187.7 kB / 432.9 MB, free: 9.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.107e-05/0.3907, allocations: 19.98 kB / 433 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.898e-05/0.3908, allocations: 28 kB / 433 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.761e-05/0.3908, allocations: 19.92 kB / 433 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.206e-05/0.3908, allocations: 15.94 kB / 433 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003522/0.3943, allocations: 1.557 MB / 434.6 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002866/0.3947, allocations: 160.6 kB / 434.7 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.451e-05/0.3947, allocations: 27.98 kB / 434.8 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006528/0.3954, allocations: 71.92 kB / 434.8 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000237/0.3957, allocations: 103.9 kB / 434.9 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.547e-05/0.3957, allocations: 32 kB / 435 MB, free: 7.641 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001511/0.3959, allocations: 140 kB / 435.1 MB, free: 7.504 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3959, allocations: 0 / 435.1 MB, free: 7.504 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007335/0.3966, allocations: 124 kB / 435.2 MB, free: 7.383 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.0002101/0.3968, allocations: 134.9 kB / 435.4 MB, free: 7.238 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003178/0.4, allocations: 1.14 MB / 436.5 MB, free: 6.098 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/0.4001, allocations: 0 / 436.5 MB, free: 6.098 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001218/0.4013, allocations: 342 kB / 436.8 MB, free: 5.766 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001024/0.4023, allocations: 136.7 kB / 437 MB, free: 5.633 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002638/0.405, allocations: 1.202 MB / 438.2 MB, free: 4.262 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005162/0.4055, allocations: 0.809 MB / 439 MB, free: 3.426 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003818/0.4059, allocations: 43.44 kB / 439 MB, free: 3.387 MB / 350.1 MB Notification: Performance of SimCode: time 1.322e-06/0.4059, allocations: 0 / 439 MB, free: 3.387 MB / 350.1 MB Notification: Performance of Templates: time 0.01256/0.4185, allocations: 7.256 MB / 446.3 MB, free: 12.14 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches