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.0007372/0.0007372, allocations: 95.09 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008821/0.0008821, allocations: 207 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.7 MB / 247.5 MB, free: 9.473 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000215/0.000215, allocations: 4 kB / 308.4 MB, free: 0.5742 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08663/0.08687, allocations: 51.53 MB / 359.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.008077/0.09499, allocations: 7.642 MB / 367.6 MB, free: 5.352 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005062/0.1001, allocations: 2.672 MB / 370.2 MB, free: 2.668 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009863/0.1011, allocations: 27.94 kB / 370.3 MB, free: 2.641 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001558/0.1027, allocations: 481.4 kB / 370.7 MB, free: 2.168 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001444/0.1041, allocations: 369.3 kB / 371.1 MB, free: 1.805 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008502/0.105, allocations: 323.3 kB / 371.4 MB, free: 1.492 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001696/0.1067, allocations: 1.416 MB / 372.8 MB, free: 72 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1702/0.277, allocations: 0.5194 MB / 373.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001254/0.2783, allocations: 469.3 kB / 373.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008755/0.2792, allocations: 0.513 MB / 374.3 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001579/0.2793, allocations: 61.38 kB / 374.4 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000306/0.2797, allocations: 105.3 kB / 374.5 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001701/0.2798, allocations: 196.6 kB / 374.7 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006135/0.2804, allocations: 0.5944 MB / 375.3 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001488/0.2819, allocations: 1.321 MB / 376.6 MB, free: 9.652 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.282, allocations: 1.062 kB / 376.6 MB, free: 9.652 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.282, allocations: 0 / 376.6 MB, free: 9.652 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.595e-05/0.282, allocations: 0 / 376.6 MB, free: 9.652 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002205/0.2842, allocations: 1.304 MB / 377.9 MB, free: 8.867 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.2843, allocations: 11.62 kB / 377.9 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005957/0.2849, allocations: 196 kB / 378.1 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001009/0.2859, allocations: 0.7683 MB / 378.9 MB, free: 8.461 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.767e-05/0.2859, allocations: 75.56 kB / 378.9 MB, free: 8.461 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001311/0.2861, allocations: 102.4 kB / 379 MB, free: 8.457 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002098/0.2882, allocations: 0.971 MB / 380 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.552e-05/0.2882, allocations: 3.188 kB / 380 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001167/0.2884, allocations: 39.59 kB / 380 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.198e-05/0.2884, allocations: 24 kB / 380.1 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001898/0.2903, allocations: 0.6546 MB / 380.7 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007071/0.2974, allocations: 4.144 MB / 384.9 MB, free: 6.242 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001478/0.2989, allocations: 464.5 kB / 385.3 MB, free: 6.086 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004411/0.2994, allocations: 174.8 kB / 385.5 MB, free: 6.016 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.059e-05/0.2994, allocations: 3.5 kB / 385.5 MB, free: 6.016 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.522e-05/0.2995, allocations: 39.67 kB / 385.5 MB, free: 5.973 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 3.286e-06/0.2995, allocations: 0 / 385.5 MB, free: 5.973 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003419/0.3029, allocations: 1.346 MB / 386.9 MB, free: 5.129 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/0.303, allocations: 137.7 kB / 387 MB, free: 4.969 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00183/0.3048, allocations: 0.8955 MB / 387.9 MB, free: 4.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.395e-05/0.3049, allocations: 35.89 kB / 387.9 MB, free: 4.531 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004266/0.3053, allocations: 0.5873 MB / 388.5 MB, free: 4.066 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.3054, allocations: 150.5 kB / 388.7 MB, free: 3.953 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.327e-05/0.3055, allocations: 64.17 kB / 388.7 MB, free: 3.914 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.903e-05/0.3056, allocations: 334.7 kB / 389.1 MB, free: 3.594 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004567/0.3061, allocations: 172 kB / 389.2 MB, free: 3.539 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006159/0.3067, allocations: 0.502 MB / 389.7 MB, free: 3.039 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001141/0.3079, allocations: 0.6904 MB / 390.4 MB, free: 2.488 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.935e-06/0.3079, allocations: 3.156 kB / 390.4 MB, free: 2.488 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00176/0.3097, allocations: 0.7583 MB / 391.2 MB, free: 2.215 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000149/0.3098, allocations: 403 kB / 391.6 MB, free: 1.703 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.748e-05/0.3099, allocations: 11.06 kB / 391.6 MB, free: 1.703 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001584/0.31, allocations: 36.48 kB / 391.6 MB, free: 1.691 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005467/0.3106, allocations: 180.2 kB / 391.8 MB, free: 1.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007098/0.3113, allocations: 1.284 MB / 393.1 MB, free: 392 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007378/0.312, allocations: 50.59 kB / 393.1 MB, free: 372 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.746e-05/0.3121, allocations: 33.81 kB / 393.2 MB, free: 368 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.955e-06/0.3121, allocations: 7.031 kB / 393.2 MB, free: 364 kB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009072/0.313, allocations: 0.6117 MB / 393.8 MB, free: 164 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.3131, allocations: 11.12 kB / 393.8 MB, free: 164 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.672e-05/0.3131, allocations: 35.62 kB / 393.8 MB, free: 152 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004832/0.3136, allocations: 172.8 kB / 394 MB, free: 140 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008322/0.3145, allocations: 1.287 MB / 395.3 MB, free: 14.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005918/0.3151, allocations: 33.11 kB / 395.3 MB, free: 14.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.739e-05/0.3151, allocations: 33.38 kB / 395.4 MB, free: 14.82 MB / 318.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.0006185/0.3158, allocations: 344.1 kB / 395.7 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001499/0.3159, allocations: 91.97 kB / 395.8 MB, free: 14.5 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008489/0.3168, allocations: 451.2 kB / 396.2 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.047e-05/0.3168, allocations: 13.81 kB / 396.2 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.856e-06/0.3168, allocations: 0.75 kB / 396.2 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.3168, allocations: 3.719 kB / 396.2 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002125/0.319, allocations: 1.399 MB / 397.6 MB, free: 13.39 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.319, allocations: 5.141 kB / 397.6 MB, free: 13.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003575/0.3193, allocations: 77.25 kB / 397.7 MB, free: 13.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.057e-05/0.3194, allocations: 24.91 kB / 397.7 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.891e-05/0.3195, allocations: 12.25 kB / 397.8 MB, free: 13.35 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008458/0.3203, allocations: 1.278 MB / 399 MB, free: 12.02 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.3203, allocations: 2.562 kB / 399 MB, free: 12.02 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001073/0.3214, allocations: 0.7291 MB / 399.8 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002904/0.3217, allocations: 207.4 kB / 400 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.867e-05/0.3218, allocations: 8.125 kB / 400 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004128/0.3223, allocations: 28.48 kB / 400 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.119e-05/0.3223, allocations: 31.53 kB / 400 MB, free: 11.33 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.063e-05/0.3224, allocations: 9.625 kB / 400 MB, free: 11.33 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008616/0.3232, allocations: 0.6044 MB / 400.7 MB, free: 10.97 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3232, allocations: 0 / 400.7 MB, free: 10.97 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001322/0.3246, allocations: 355.8 kB / 401 MB, free: 10.94 MB / 318.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.000221/0.3248, allocations: 122.2 kB / 401.1 MB, free: 10.84 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001605/0.3264, allocations: 0.9875 MB / 402.1 MB, free: 10.34 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3264, allocations: 0 / 402.1 MB, free: 10.34 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003944/0.3268, allocations: 290.5 kB / 402.4 MB, free: 10.17 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001389/0.3282, allocations: 228.2 kB / 402.6 MB, free: 10.05 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003251/0.3315, allocations: 2.372 MB / 405 MB, free: 8.352 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006216/0.3321, allocations: 1.025 MB / 406 MB, free: 7.504 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001942/0.3323, allocations: 64.12 kB / 406.1 MB, free: 7.496 MB / 318.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3323, allocations: 0 / 406.1 MB, free: 7.496 MB / 318.1 MB Notification: Performance of Templates: time 0.02366/0.356, allocations: 16.64 MB / 422.7 MB, free: 7.906 MB / 334.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins1/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