Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001412/0.001412, allocations: 197.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 226.6 MB / 244.3 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007723/0.0007727, allocations: 106.5 kB / 296.4 MB, free: 6.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003619/0.000362, allocations: 4 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2607, allocations: 51.3 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002071/0.2628, allocations: 1.965 MB / 409.5 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.264, allocations: 0.8072 MB / 410.3 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001302/0.2641, allocations: 7.938 kB / 410.3 MB, free: 25.03 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002621/0.2644, allocations: 35.7 kB / 410.3 MB, free: 24.99 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001476/0.2645, allocations: 41.22 kB / 410.3 MB, free: 24.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003905/0.2649, allocations: 143.2 kB / 410.5 MB, free: 24.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002597/0.2652, allocations: 351.2 kB / 410.8 MB, free: 24.47 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000173/0.2654, allocations: 81 kB / 410.9 MB, free: 24.4 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002152/0.2656, allocations: 127.5 kB / 411 MB, free: 24.28 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001703/0.2658, allocations: 155.3 kB / 411.2 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.657e-05/0.2658, allocations: 19.56 kB / 411.2 MB, free: 24.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.92e-05/0.2659, allocations: 16 kB / 411.2 MB, free: 24.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.565e-05/0.2659, allocations: 79.77 kB / 411.3 MB, free: 24.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.211e-05/0.266, allocations: 65.58 kB / 411.4 MB, free: 23.95 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001765/0.2662, allocations: 224.4 kB / 411.6 MB, free: 23.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.2662, allocations: 3.938 kB / 411.6 MB, free: 23.72 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.2662, allocations: 0 / 411.6 MB, free: 23.72 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.01e-05/0.2662, allocations: 0 / 411.6 MB, free: 23.72 MB / 298.7 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.0009827/0.2672, allocations: 0.5936 MB / 412.2 MB, free: 23.08 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.2673, allocations: 8.031 kB / 412.2 MB, free: 23.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.039e-05/0.2673, allocations: 39.62 kB / 412.2 MB, free: 23.03 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002796/0.2676, allocations: 263.1 kB / 412.5 MB, free: 22.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001606/0.2678, allocations: 149.7 kB / 412.6 MB, free: 22.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.15e-05/0.2678, allocations: 39.86 kB / 412.7 MB, free: 22.53 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001006/0.2689, allocations: 0.5621 MB / 413.2 MB, free: 21.94 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/0.2689, allocations: 4 kB / 413.2 MB, free: 21.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.07e-05/0.2689, allocations: 12 kB / 413.2 MB, free: 21.92 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.2689, allocations: 8 kB / 413.2 MB, free: 21.91 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001208/0.2701, allocations: 0.5308 MB / 413.8 MB, free: 21.38 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001216/0.2714, allocations: 1.03 MB / 414.8 MB, free: 20.27 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00142/0.2728, allocations: 0.5038 MB / 415.3 MB, free: 19.73 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005291/0.2733, allocations: 279.9 kB / 415.6 MB, free: 19.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.147e-05/0.2734, allocations: 4.188 kB / 415.6 MB, free: 19.45 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.079e-05/0.2734, allocations: 58.61 kB / 415.6 MB, free: 19.38 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 1.753e-06/0.2734, allocations: 0 / 415.6 MB, free: 19.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.03688/0.3103, allocations: 6.736 MB / 422.4 MB, free: 12.63 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.179e-05/0.3104, allocations: 148.9 kB / 422.5 MB, free: 12.46 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001858/0.3106, allocations: 201.9 kB / 422.7 MB, free: 12.25 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.131e-05/0.3107, allocations: 33.7 kB / 422.8 MB, free: 12.21 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.013e-05/0.3108, allocations: 149.5 kB / 422.9 MB, free: 12.06 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000141/0.3109, allocations: 189.3 kB / 423.1 MB, free: 11.88 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.645e-05/0.311, allocations: 12 kB / 423.1 MB, free: 11.86 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.327e-05/0.3111, allocations: 342.8 kB / 423.4 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001395/0.3125, allocations: 0.6543 MB / 424.1 MB, free: 10.86 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001431/0.3139, allocations: 0.8354 MB / 424.9 MB, free: 9.953 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001335/0.3152, allocations: 0.5981 MB / 425.5 MB, free: 9.355 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.3153, allocations: 4 kB / 425.5 MB, free: 9.352 MB / 298.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003091/0.3184, allocations: 1.464 MB / 427 MB, free: 7.879 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.3184, allocations: 11.94 kB / 427 MB, free: 7.867 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.3184, allocations: 4 kB / 427 MB, free: 7.863 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.25e-05/0.3184, allocations: 15.94 kB / 427 MB, free: 7.848 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001256/0.3197, allocations: 231.7 kB / 427.3 MB, free: 7.621 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.514e-05/0.3197, allocations: 11.94 kB / 427.3 MB, free: 7.609 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009294/0.3207, allocations: 127.7 kB / 427.4 MB, free: 7.484 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.266e-05/0.3207, allocations: 32 kB / 427.4 MB, free: 7.453 MB / 298.7 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.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 initialization (83): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000276/0.321, allocations: 173.6 kB / 427.6 MB, free: 7.273 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002565/0.3213, allocations: 157.5 kB / 427.7 MB, free: 7.113 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001175/0.3214, allocations: 71.23 kB / 427.8 MB, free: 7.047 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.3214, allocations: 8 kB / 427.8 MB, free: 7.039 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.3214, allocations: 4 kB / 427.8 MB, free: 7.035 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.3215, allocations: 0 / 427.8 MB, free: 7.035 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004036/0.3255, allocations: 2.288 MB / 430.1 MB, free: 4.562 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.026e-05/0.3255, allocations: 12 kB / 430.1 MB, free: 4.551 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007158/0.3262, allocations: 208.2 kB / 430.3 MB, free: 4.348 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.369e-05/0.3263, allocations: 16 kB / 430.3 MB, free: 4.332 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.325e-05/0.3263, allocations: 20 kB / 430.4 MB, free: 4.312 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.064e-05/0.3263, allocations: 23.92 kB / 430.4 MB, free: 4.289 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.824e-06/0.3263, allocations: 19.88 kB / 430.4 MB, free: 4.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002757/0.3291, allocations: 1.662 MB / 432.1 MB, free: 2.457 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001501/0.3293, allocations: 168.7 kB / 432.2 MB, free: 2.273 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.306e-05/0.3293, allocations: 28 kB / 432.3 MB, free: 2.246 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005737/0.3299, allocations: 95.91 kB / 432.4 MB, free: 2.152 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001577/0.3301, allocations: 103.7 kB / 432.5 MB, free: 2.051 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.958e-05/0.3301, allocations: 32.19 kB / 432.5 MB, free: 2.02 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.438e-05/0.3302, allocations: 140.3 kB / 432.6 MB, free: 1.883 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3302, allocations: 3.938 kB / 432.6 MB, free: 1.879 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005863/0.3308, allocations: 120 kB / 432.7 MB, free: 1.762 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001529/0.331, allocations: 135 kB / 432.9 MB, free: 1.617 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002475/0.3335, allocations: 1.194 MB / 434.1 MB, free: 436 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.3335, allocations: 0 / 434.1 MB, free: 436 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008695/0.3344, allocations: 378.6 kB / 434.4 MB, free: 60 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008367/0.3352, allocations: 146.8 kB / 434.6 MB, free: 15.91 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002314/0.3375, allocations: 1.362 MB / 435.9 MB, free: 14.38 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003734/0.3379, allocations: 0.8129 MB / 436.8 MB, free: 13.54 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003202/0.3383, allocations: 47.42 kB / 436.8 MB, free: 13.49 MB / 314.7 MB Notification: Performance of SimCode: time 5.11e-07/0.3383, allocations: 0 / 436.8 MB, free: 13.49 MB / 314.7 MB Notification: Performance of Templates: time 0.009621/0.3479, allocations: 7.12 MB / 443.9 MB, free: 6.391 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches