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.001143/0.001142, allocations: 115.5 kB / 17.69 MB, free: 5.312 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.0009942/0.0009942, allocations: 191 kB / 18.63 MB, free: 4.379 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.27/1.27, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009433/0.0009433, allocations: 45 kB / 302.1 MB, free: 5.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0927/0.09366, allocations: 49.44 MB / 351.5 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003225/0.09693, allocations: 2.133 MB / 353.6 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001063/0.09801, allocations: 0.6471 MB / 354.3 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.09813, allocations: 7.938 kB / 354.3 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002654/0.09841, allocations: 39.7 kB / 354.3 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001275/0.09855, allocations: 47.56 kB / 354.4 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003641/0.09893, allocations: 123.8 kB / 354.5 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003229/0.09926, allocations: 351.1 kB / 354.8 MB, free: 372 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001723/0.09944, allocations: 72.22 kB / 354.9 MB, free: 296 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001766/0.09962, allocations: 131.6 kB / 355 MB, free: 164 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002007/0.09983, allocations: 159.4 kB / 355.2 MB, free: 4 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.315e-05/0.09991, allocations: 32.05 kB / 355.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.952e-05/0.09995, allocations: 28 kB / 355.2 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001037/0.1001, allocations: 87.69 kB / 355.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001147/0.1002, allocations: 123.4 kB / 355.5 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002916/0.1005, allocations: 283.1 kB / 355.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1005, allocations: 3.938 kB / 355.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1005, allocations: 0 / 355.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.084e-05/0.1005, allocations: 0 / 355.7 MB, free: 15.46 MB / 302.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.001067/0.1016, allocations: 0.5806 MB / 356.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/0.1017, allocations: 11.89 kB / 356.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.947e-05/0.1017, allocations: 32.66 kB / 356.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003565/0.1021, allocations: 259.4 kB / 356.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001784/0.1023, allocations: 130.2 kB / 356.7 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.204e-05/0.1023, allocations: 27.94 kB / 356.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007262/0.1031, allocations: 367.5 kB / 357.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.1031, allocations: 4 kB / 357.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.82e-05/0.1031, allocations: 12 kB / 357.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.056e-06/0.1031, allocations: 8 kB / 357.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001169/0.1043, allocations: 0.49 MB / 357.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001588/0.1059, allocations: 1.003 MB / 358.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00104/0.107, allocations: 343.6 kB / 359 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004338/0.1074, allocations: 173.2 kB / 359.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.802e-05/0.1075, allocations: 4.234 kB / 359.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.398e-05/0.1075, allocations: 34.8 kB / 359.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.512e-06/0.1075, allocations: 0 / 359.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.02471/0.1322, allocations: 5.797 MB / 365 MB, free: 5.918 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.592e-05/0.1323, allocations: 63.84 kB / 365 MB, free: 5.844 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002266/0.1325, allocations: 202.7 kB / 365.2 MB, free: 5.637 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.949e-05/0.1326, allocations: 33.7 kB / 365.3 MB, free: 5.598 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.255e-05/0.1327, allocations: 152.6 kB / 365.4 MB, free: 5.445 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001378/0.1328, allocations: 173.5 kB / 365.6 MB, free: 5.273 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002019/0.133, allocations: 90.16 kB / 365.7 MB, free: 5.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.1332, allocations: 342.8 kB / 366 MB, free: 4.836 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001158/0.1344, allocations: 464.8 kB / 366.5 MB, free: 4.383 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001139/0.1355, allocations: 0.5177 MB / 367 MB, free: 3.848 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00199/0.1375, allocations: 0.8032 MB / 367.8 MB, free: 3.027 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.1375, allocations: 0 / 367.8 MB, free: 3.027 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002386/0.1399, allocations: 0.9866 MB / 368.8 MB, free: 2.035 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.1399, allocations: 11.94 kB / 368.8 MB, free: 2.023 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.1399, allocations: 0 / 368.8 MB, free: 2.023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.14, allocations: 4 kB / 368.8 MB, free: 2.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009072/0.1409, allocations: 171.8 kB / 369 MB, free: 1.852 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.969e-06/0.1409, allocations: 4 kB / 369 MB, free: 1.848 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005907/0.1415, allocations: 83.88 kB / 369 MB, free: 1.766 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.542e-05/0.1416, allocations: 19.94 kB / 369.1 MB, free: 1.746 MB / 302.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.0002223/0.1418, allocations: 165.7 kB / 369.2 MB, free: 1.574 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.466e-05/0.1419, allocations: 35.55 kB / 369.3 MB, free: 1.539 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001085/0.142, allocations: 47.31 kB / 369.3 MB, free: 1.488 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.142, allocations: 4 kB / 369.3 MB, free: 1.484 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.142, allocations: 0 / 369.3 MB, free: 1.484 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.142, allocations: 7.922 kB / 369.3 MB, free: 1.477 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1575/0.2995, allocations: 1.86 MB / 371.2 MB, free: 26.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-05/0.2995, allocations: 9.406 kB / 371.2 MB, free: 26.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006462/0.3002, allocations: 148.9 kB / 371.3 MB, free: 26.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.898e-05/0.3002, allocations: 14.72 kB / 371.3 MB, free: 26.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.649e-05/0.3003, allocations: 21.41 kB / 371.4 MB, free: 26.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.48e-05/0.3003, allocations: 15.45 kB / 371.4 MB, free: 26.08 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.716e-06/0.3003, allocations: 9.891 kB / 371.4 MB, free: 26.08 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002463/0.3028, allocations: 1.225 MB / 372.6 MB, free: 25.65 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000164/0.303, allocations: 151.1 kB / 372.8 MB, free: 25.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.974e-05/0.303, allocations: 17.7 kB / 372.8 MB, free: 25.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004796/0.3035, allocations: 76.8 kB / 372.9 MB, free: 25.55 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001804/0.3037, allocations: 83.98 kB / 372.9 MB, free: 25.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.883e-05/0.3037, allocations: 24.09 kB / 373 MB, free: 25.55 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001396/0.3039, allocations: 145.4 kB / 373.1 MB, free: 25.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3039, allocations: 0 / 373.1 MB, free: 25.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005107/0.3044, allocations: 95.19 kB / 373.2 MB, free: 25.48 MB / 302.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.0001478/0.3046, allocations: 128.8 kB / 373.3 MB, free: 25.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002018/0.3066, allocations: 0.8651 MB / 374.2 MB, free: 25.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.3066, allocations: 1.375 kB / 374.2 MB, free: 25.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007995/0.3074, allocations: 332.1 kB / 374.5 MB, free: 25.16 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005688/0.308, allocations: 58.42 kB / 374.6 MB, free: 25.15 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001807/0.3098, allocations: 1.018 MB / 375.6 MB, free: 24.44 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002231/0.31, allocations: 0.7794 MB / 376.4 MB, free: 23.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003565/0.3104, allocations: 80.61 kB / 376.4 MB, free: 23.71 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001966/0.3106, allocations: 29.75 kB / 376.5 MB, free: 23.71 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3106, allocations: 4 kB / 376.5 MB, free: 23.7 MB / 302.1 MB Notification: Performance of Templates: time 0.009332/0.32, allocations: 5.704 MB / 382.2 MB, free: 22.62 MB / 302.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 -s gbode -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