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.001143/0.001144, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001255/0.001255, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 227.4 MB / 246.9 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 67.97 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2919/0.2932, allocations: 50.55 MB / 409.2 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004523/0.2978, allocations: 2.354 MB / 411.6 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00183/0.2996, allocations: 0.8338 MB / 412.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002773/0.2999, allocations: 11.94 kB / 412.4 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003546/0.3003, allocations: 47.58 kB / 412.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003457/0.3007, allocations: 55.56 kB / 412.5 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007133/0.3014, allocations: 183.3 kB / 412.7 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000637/0.3021, allocations: 387.5 kB / 413.1 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002813/0.3024, allocations: 107.8 kB / 413.2 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003664/0.3027, allocations: 159.5 kB / 413.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002856/0.303, allocations: 183.2 kB / 413.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.259e-05/0.3031, allocations: 36 kB / 413.6 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.621e-05/0.3032, allocations: 35.94 kB / 413.6 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001346/0.3033, allocations: 95.78 kB / 413.7 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001468/0.3035, allocations: 147.2 kB / 413.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005337/0.304, allocations: 328 kB / 414.2 MB, free: 12.64 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.304, allocations: 4 kB / 414.2 MB, free: 12.64 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.304, allocations: 0 / 414.2 MB, free: 12.64 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.304, allocations: 0 / 414.2 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.00129/0.3053, allocations: 0.6278 MB / 414.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/0.3054, allocations: 12.03 kB / 414.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.955e-05/0.3055, allocations: 36.56 kB / 414.8 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004993/0.306, allocations: 284.2 kB / 415.1 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002081/0.3062, allocations: 138.3 kB / 415.2 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.928e-05/0.3063, allocations: 32.38 kB / 415.3 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001236/0.3075, allocations: 0.566 MB / 415.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.3076, allocations: 0 / 415.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.093e-05/0.3076, allocations: 12 kB / 415.9 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.729e-05/0.3076, allocations: 8 kB / 415.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00136/0.309, allocations: 0.5112 MB / 416.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001649/0.3107, allocations: 1.002 MB / 417.4 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001584/0.3123, allocations: 0.5102 MB / 417.9 MB, free: 8.664 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006905/0.313, allocations: 258.7 kB / 418.1 MB, free: 8.402 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.974e-05/0.313, allocations: 15.98 kB / 418.2 MB, free: 8.387 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.892e-05/0.3131, allocations: 38.56 kB / 418.2 MB, free: 8.34 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.164e-06/0.3131, allocations: 0 / 418.2 MB, free: 8.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03777/0.3508, allocations: 5.713 MB / 423.9 MB, free: 2.617 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/0.351, allocations: 145 kB / 424 MB, free: 2.445 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000225/0.3512, allocations: 201.1 kB / 424.2 MB, free: 2.238 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.195e-05/0.3513, allocations: 37.7 kB / 424.3 MB, free: 2.195 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.3514, allocations: 149.5 kB / 424.4 MB, free: 2.043 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001888/0.3516, allocations: 193.3 kB / 424.6 MB, free: 1.852 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000273/0.3519, allocations: 106.7 kB / 424.7 MB, free: 1.742 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.3521, allocations: 350.7 kB / 425.1 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001557/0.3536, allocations: 0.6188 MB / 425.7 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001723/0.3554, allocations: 0.7925 MB / 426.5 MB, free: 15.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003046/0.3584, allocations: 1.248 MB / 427.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.3584, allocations: 4 kB / 427.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003542/0.362, allocations: 1.398 MB / 429.1 MB, free: 13.17 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.362, allocations: 4 kB / 429.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/0.362, allocations: 8.375 kB / 429.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.432e-05/0.3621, allocations: 8 kB / 429.1 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001278/0.3634, allocations: 211.7 kB / 429.3 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.815e-05/0.3634, allocations: 19.92 kB / 429.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009482/0.3643, allocations: 103.7 kB / 429.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.439e-05/0.3644, allocations: 24 kB / 429.5 MB, free: 12.8 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.000384/0.3648, allocations: 185.5 kB / 429.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002831/0.3651, allocations: 161.1 kB / 429.8 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001788/0.3653, allocations: 63.3 kB / 429.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.3653, allocations: 8 kB / 429.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.3653, allocations: 4 kB / 429.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.3653, allocations: 3.984 kB / 429.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004595/0.3699, allocations: 2.159 MB / 432.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.61e-05/0.37, allocations: 16.97 kB / 432.1 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007672/0.3708, allocations: 187.7 kB / 432.3 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.657e-05/0.3708, allocations: 12 kB / 432.3 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.408e-05/0.3708, allocations: 28 kB / 432.3 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.705e-05/0.3709, allocations: 23.92 kB / 432.3 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.04e-05/0.3709, allocations: 11.94 kB / 432.3 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003259/0.3741, allocations: 1.557 MB / 433.9 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002068/0.3744, allocations: 164.6 kB / 434.1 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.444e-05/0.3744, allocations: 27.98 kB / 434.1 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005518/0.375, allocations: 71.92 kB / 434.2 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001937/0.3752, allocations: 103.7 kB / 434.3 MB, free: 7.656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.594e-05/0.3753, allocations: 28 kB / 434.3 MB, free: 7.629 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001262/0.3754, allocations: 140.1 kB / 434.4 MB, free: 7.492 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3754, allocations: 0 / 434.4 MB, free: 7.492 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006723/0.3761, allocations: 120 kB / 434.5 MB, free: 7.375 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.0001852/0.3763, allocations: 134.9 kB / 434.7 MB, free: 7.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002906/0.3792, allocations: 1.136 MB / 435.8 MB, free: 6.094 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.3792, allocations: 3.938 kB / 435.8 MB, free: 6.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009698/0.3802, allocations: 345.9 kB / 436.1 MB, free: 5.754 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008841/0.3811, allocations: 139 kB / 436.3 MB, free: 5.621 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00229/0.3834, allocations: 1.173 MB / 437.5 MB, free: 4.285 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004141/0.3838, allocations: 0.809 MB / 438.3 MB, free: 3.449 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004779/0.3843, allocations: 99.31 kB / 438.4 MB, free: 3.352 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002878/0.3846, allocations: 39.42 kB / 438.4 MB, free: 3.316 MB / 350.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3846, allocations: 4 kB / 438.4 MB, free: 3.312 MB / 350.1 MB Notification: Performance of Templates: time 0.01483/0.3994, allocations: 8.312 MB / 446.7 MB, free: 11.01 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches