Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001157/0.001163, allocations: 118.2 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001323/0.001323, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.4 MB / 246.9 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001099/0.001099, allocations: 55.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2436/0.2447, allocations: 50.55 MB / 409.3 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.008949/0.2537, allocations: 8.177 MB / 417.4 MB, free: 9.379 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004944/0.2587, allocations: 2.723 MB / 420.2 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006434/0.2594, allocations: 31.88 kB / 420.2 MB, free: 6.617 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001334/0.2607, allocations: 0.5317 MB / 420.7 MB, free: 6.082 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000926/0.2617, allocations: 432.5 kB / 421.2 MB, free: 5.656 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006574/0.2624, allocations: 367 kB / 421.5 MB, free: 5.301 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001353/0.2637, allocations: 1.495 MB / 423 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00078/0.2645, allocations: 0.6139 MB / 423.6 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000623/0.2651, allocations: 0.568 MB / 424.2 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000602/0.2658, allocations: 0.5987 MB / 424.8 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001627/0.2659, allocations: 144 kB / 424.9 MB, free: 1.844 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002985/0.2662, allocations: 176 kB / 425.1 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000197/0.2664, allocations: 294.9 kB / 425.4 MB, free: 1.383 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000496/0.2669, allocations: 0.6647 MB / 426.1 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001481/0.2684, allocations: 1.721 MB / 427.8 MB, free: 14.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2684, allocations: 0 / 427.8 MB, free: 14.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2684, allocations: 0 / 427.8 MB, free: 14.99 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.331e-05/0.2685, allocations: 0 / 427.8 MB, free: 14.99 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002203/0.2707, allocations: 1.515 MB / 429.3 MB, free: 13.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.083e-05/0.2707, allocations: 8.031 kB / 429.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005957/0.2713, allocations: 187.2 kB / 429.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001114/0.2724, allocations: 0.79 MB / 430.3 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.701e-05/0.2725, allocations: 77.94 kB / 430.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001202/0.2726, allocations: 96 kB / 430.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001482/0.2741, allocations: 0.9584 MB / 431.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.996e-05/0.2742, allocations: 11.91 kB / 431.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.589e-05/0.2743, allocations: 43.94 kB / 431.5 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.945e-05/0.2743, allocations: 24 kB / 431.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001141/0.2754, allocations: 0.6364 MB / 432.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004722/0.2802, allocations: 4.072 MB / 436.2 MB, free: 6.215 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009571/0.2811, allocations: 439.2 kB / 436.6 MB, free: 5.777 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002756/0.2814, allocations: 160.8 kB / 436.8 MB, free: 5.617 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.813e-05/0.2815, allocations: 4 kB / 436.8 MB, free: 5.613 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.369e-05/0.2815, allocations: 38.56 kB / 436.8 MB, free: 5.566 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.463e-06/0.2815, allocations: 0 / 436.8 MB, free: 5.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002243/0.2837, allocations: 1.319 MB / 438.1 MB, free: 4.176 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.468e-05/0.2838, allocations: 136.5 kB / 438.3 MB, free: 4.012 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001079/0.2849, allocations: 0.8936 MB / 439.2 MB, free: 3.094 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.394e-05/0.285, allocations: 33.7 kB / 439.2 MB, free: 3.055 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004295/0.2854, allocations: 0.5953 MB / 439.8 MB, free: 2.449 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001037/0.2855, allocations: 142 kB / 439.9 MB, free: 2.309 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00021/0.2857, allocations: 138.5 kB / 440.1 MB, free: 2.168 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.2859, allocations: 330 kB / 440.4 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003518/0.2862, allocations: 180.8 kB / 440.6 MB, free: 1.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006103/0.2869, allocations: 498.5 kB / 441 MB, free: 1.016 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009766/0.2878, allocations: 0.6867 MB / 441.7 MB, free: 188 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.919e-05/0.2879, allocations: 4 kB / 441.7 MB, free: 184 kB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001285/0.2892, allocations: 0.7467 MB / 442.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.2892, allocations: 8 kB / 442.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.478e-05/0.2892, allocations: 15.94 kB / 442.5 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001697/0.2894, allocations: 33.34 kB / 442.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005602/0.29, allocations: 175.7 kB / 442.7 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001072/0.2911, allocations: 1.39 MB / 444.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005174/0.2916, allocations: 39.89 kB / 444.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.628e-05/0.2916, allocations: 36 kB / 444.2 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006225/0.2923, allocations: 350.1 kB / 444.5 MB, free: 13.24 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005831/0.2929, allocations: 490.6 kB / 445 MB, free: 12.61 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000811/0.2937, allocations: 0.6639 MB / 445.7 MB, free: 11.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.108e-06/0.2937, allocations: 0 / 445.7 MB, free: 11.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.00111/0.2948, allocations: 0.7234 MB / 446.4 MB, free: 11.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.2948, allocations: 8 kB / 446.4 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.2949, allocations: 12 kB / 446.4 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.807e-05/0.295, allocations: 36.78 kB / 446.4 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005307/0.2955, allocations: 175.6 kB / 446.6 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001086/0.2966, allocations: 1.375 MB / 448 MB, free: 9.324 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006299/0.2972, allocations: 40.05 kB / 448 MB, free: 9.285 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.558e-05/0.2973, allocations: 36 kB / 448.1 MB, free: 9.25 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002727/0.2976, allocations: 243.4 kB / 448.3 MB, free: 9.008 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001526/0.2977, allocations: 90.88 kB / 448.4 MB, free: 8.918 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009432/0.2987, allocations: 435.4 kB / 448.8 MB, free: 8.484 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.2987, allocations: 4 kB / 448.8 MB, free: 8.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.2987, allocations: 0 / 448.8 MB, free: 8.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.2987, allocations: 7.922 kB / 448.8 MB, free: 8.473 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002203/0.3009, allocations: 1.376 MB / 450.2 MB, free: 7.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.301, allocations: 4 kB / 450.2 MB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003594/0.3013, allocations: 83.83 kB / 450.3 MB, free: 6.934 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.917e-05/0.3014, allocations: 16.86 kB / 450.3 MB, free: 6.914 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.811e-05/0.3015, allocations: 12.22 kB / 450.3 MB, free: 6.902 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009967/0.3025, allocations: 1.371 MB / 451.7 MB, free: 5.391 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.3025, allocations: 4.031 kB / 451.7 MB, free: 5.387 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001146/0.3036, allocations: 0.7027 MB / 452.4 MB, free: 4.645 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003246/0.304, allocations: 207.8 kB / 452.6 MB, free: 4.422 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.3041, allocations: 16 kB / 452.6 MB, free: 4.406 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000409/0.3045, allocations: 27.97 kB / 452.6 MB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.207e-05/0.3046, allocations: 27.91 kB / 452.7 MB, free: 4.352 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.33e-05/0.3046, allocations: 12 kB / 452.7 MB, free: 4.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008375/0.3055, allocations: 0.6054 MB / 453.3 MB, free: 3.723 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3055, allocations: 0 / 453.3 MB, free: 3.723 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001284/0.3068, allocations: 355.9 kB / 453.6 MB, free: 3.375 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002425/0.307, allocations: 135.1 kB / 453.8 MB, free: 3.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001674/0.3087, allocations: 0.9648 MB / 454.7 MB, free: 2.242 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.3087, allocations: 0 / 454.7 MB, free: 2.242 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004049/0.3091, allocations: 292.6 kB / 455 MB, free: 1.945 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001104/0.3102, allocations: 245.2 kB / 455.3 MB, free: 1.711 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002675/0.3129, allocations: 1.79 MB / 457 MB, free: 15.87 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005538/0.3135, allocations: 1.021 MB / 458.1 MB, free: 14.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004279/0.3139, allocations: 131.3 kB / 458.2 MB, free: 14.69 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001386/0.3141, allocations: 63.38 kB / 458.3 MB, free: 14.62 MB / 382.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3141, allocations: 0 / 458.3 MB, free: 14.62 MB / 382.1 MB Notification: Performance of Templates: time 0.01818/0.3323, allocations: 10.82 MB / 469.1 MB, free: 3.906 MB / 382.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches