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.001387/0.001387, allocations: 113.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001605/0.001605, allocations: 206.8 kB / 19.4 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.657/1.657, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001971/0.001971, allocations: 67.88 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3792/0.3812, allocations: 50.53 MB / 409.9 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.004583/0.3859, allocations: 2.147 MB / 412.1 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002056/0.388, allocations: 0.686 MB / 412.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002532/0.3883, allocations: 4 kB / 412.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003795/0.3887, allocations: 43.64 kB / 412.8 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002714/0.389, allocations: 47.62 kB / 412.8 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005912/0.3896, allocations: 131.8 kB / 413 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006662/0.3903, allocations: 335.2 kB / 413.3 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002684/0.3906, allocations: 76.3 kB / 413.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004542/0.391, allocations: 151.5 kB / 413.5 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003734/0.3914, allocations: 155.4 kB / 413.7 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.039e-05/0.3915, allocations: 32 kB / 413.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.208e-05/0.3916, allocations: 28 kB / 413.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001587/0.3918, allocations: 83.73 kB / 413.8 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001791/0.392, allocations: 119.4 kB / 413.9 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005215/0.3925, allocations: 282.9 kB / 414.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.3925, allocations: 8 kB / 414.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3926, allocations: 0 / 414.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.252e-05/0.3926, allocations: 0 / 414.2 MB, free: 13.25 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.00182/0.3944, allocations: 0.5777 MB / 414.8 MB, free: 12.62 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.783e-05/0.3945, allocations: 11.97 kB / 414.8 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001305/0.3946, allocations: 32.66 kB / 414.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005825/0.3952, allocations: 252.1 kB / 415.1 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003159/0.3955, allocations: 138.1 kB / 415.2 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.946e-05/0.3957, allocations: 31.84 kB / 415.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/0.3971, allocations: 367.6 kB / 415.6 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.448e-05/0.3971, allocations: 0 / 415.6 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.167e-05/0.3972, allocations: 12 kB / 415.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.3972, allocations: 4 kB / 415.6 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002254/0.3995, allocations: 0.4939 MB / 416.1 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002912/0.4024, allocations: 0.9878 MB / 417.1 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001908/0.4044, allocations: 343.1 kB / 417.4 MB, free: 9.828 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008417/0.4052, allocations: 173.2 kB / 417.6 MB, free: 9.656 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.691e-05/0.4053, allocations: 240 / 417.6 MB, free: 9.656 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.873e-05/0.4054, allocations: 46.73 kB / 417.6 MB, free: 9.602 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 2.315e-06/0.4054, allocations: 0 / 417.6 MB, free: 9.602 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.04559/0.451, allocations: 5.798 MB / 423.4 MB, free: 3.707 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.746e-05/0.4511, allocations: 59.84 kB / 423.5 MB, free: 3.637 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004217/0.4515, allocations: 202.2 kB / 423.7 MB, free: 3.43 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.709e-05/0.4516, allocations: 37.7 kB / 423.7 MB, free: 3.387 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000159/0.4518, allocations: 140.7 kB / 423.9 MB, free: 3.246 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002925/0.4521, allocations: 173.5 kB / 424 MB, free: 3.074 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003667/0.4525, allocations: 98.16 kB / 424.1 MB, free: 2.973 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002003/0.4527, allocations: 338.8 kB / 424.5 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002242/0.455, allocations: 460.8 kB / 424.9 MB, free: 2.184 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00229/0.4573, allocations: 0.5177 MB / 425.4 MB, free: 1.648 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004029/0.4613, allocations: 0.8071 MB / 426.2 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.694e-06/0.4614, allocations: 4 kB / 426.3 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003903/0.4653, allocations: 0.9789 MB / 427.2 MB, free: 15.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.617e-05/0.4654, allocations: 11.94 kB / 427.2 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.606e-05/0.4654, allocations: 0 / 427.2 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.449e-05/0.4655, allocations: 4 kB / 427.2 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001179/0.4667, allocations: 171.7 kB / 427.4 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.297e-05/0.4667, allocations: 4 kB / 427.4 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008611/0.4676, allocations: 83.92 kB / 427.5 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.089e-05/0.4677, allocations: 16 kB / 427.5 MB, free: 15.55 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.0002934/0.468, allocations: 165.6 kB / 427.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001189/0.4681, allocations: 31.66 kB / 427.7 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001448/0.4683, allocations: 51.3 kB / 427.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.772e-06/0.4683, allocations: 4 kB / 427.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/0.4683, allocations: 4 kB / 427.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.4683, allocations: 4 kB / 427.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005861/0.4742, allocations: 1.878 MB / 429.6 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.503e-05/0.4743, allocations: 11.94 kB / 429.7 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/0.4753, allocations: 151.7 kB / 429.8 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-05/0.4754, allocations: 19.88 kB / 429.8 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.881e-05/0.4754, allocations: 16.44 kB / 429.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.669e-05/0.4755, allocations: 12 kB / 429.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-05/0.4755, allocations: 15.94 kB / 429.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003568/0.4791, allocations: 1.221 MB / 431.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002866/0.4794, allocations: 148.8 kB / 431.2 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.609e-05/0.4795, allocations: 20 kB / 431.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006403/0.4802, allocations: 75.84 kB / 431.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002259/0.4804, allocations: 83.73 kB / 431.4 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.388e-05/0.4805, allocations: 24 kB / 431.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002104/0.4807, allocations: 148.3 kB / 431.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4807, allocations: 0 / 431.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006029/0.4813, allocations: 92 kB / 431.7 MB, free: 11.07 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.000217/0.4815, allocations: 135 kB / 431.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002766/0.4843, allocations: 0.8647 MB / 432.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.163e-05/0.4843, allocations: 4.25 kB / 432.7 MB, free: 10.06 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001146/0.4855, allocations: 325.5 kB / 433 MB, free: 9.746 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008193/0.4863, allocations: 65.69 kB / 433.1 MB, free: 9.688 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002595/0.4889, allocations: 1.04 MB / 434.1 MB, free: 8.508 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004826/0.4895, allocations: 0.7839 MB / 434.9 MB, free: 7.695 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003399/0.4898, allocations: 31.44 kB / 434.9 MB, free: 7.664 MB / 350.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4898, allocations: 4 kB / 434.9 MB, free: 7.66 MB / 350.1 MB Notification: Performance of Templates: time 0.0107/0.5005, allocations: 5.635 MB / 440.5 MB, free: 2.051 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