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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001716/0.001716, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002073/0.002073, allocations: 211.4 kB / 24.48 MB, free: 3.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 230.5 MB / 258.1 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] 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=20000,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=20000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001952/0.001952, allocations: 64.12 kB / 379 MB, free: 2.312 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.2445, allocations: 53.41 MB / 432.4 MB, free: 6.523 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.011/0.2555, allocations: 7.259 MB / 439.7 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005809/0.2613, allocations: 2.567 MB / 442.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001137/0.2624, allocations: 35.81 kB / 442.3 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001728/0.2642, allocations: 0.5084 MB / 442.8 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001502/0.2657, allocations: 468.5 kB / 443.2 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008908/0.2666, allocations: 359.5 kB / 443.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002022/0.2686, allocations: 1.502 MB / 445.1 MB, free: 9.797 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000746/0.2693, allocations: 400 kB / 445.5 MB, free: 9.383 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009273/0.2702, allocations: 0.5797 MB / 446 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007163/0.271, allocations: 0.5245 MB / 446.6 MB, free: 8.273 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001972/0.2712, allocations: 136 kB / 446.7 MB, free: 8.141 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003655/0.2715, allocations: 176 kB / 446.9 MB, free: 7.969 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002815/0.2718, allocations: 286.9 kB / 447.2 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005799/0.2724, allocations: 0.5326 MB / 447.7 MB, free: 7.152 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002253/0.2746, allocations: 1.747 MB / 449.4 MB, free: 5.398 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.2746, allocations: 3.938 kB / 449.4 MB, free: 5.395 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.2746, allocations: 0 / 449.4 MB, free: 5.395 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.555e-05/0.2747, allocations: 0 / 449.4 MB, free: 5.395 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.002944/0.2776, allocations: 1.465 MB / 450.9 MB, free: 3.895 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.2777, allocations: 11.98 kB / 450.9 MB, free: 3.883 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006576/0.2783, allocations: 199.9 kB / 451.1 MB, free: 3.688 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001518/0.2798, allocations: 0.7213 MB / 451.8 MB, free: 2.938 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.087e-05/0.2799, allocations: 77.94 kB / 451.9 MB, free: 2.859 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001565/0.2801, allocations: 103.9 kB / 452 MB, free: 2.758 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001767/0.2819, allocations: 1.063 MB / 453.1 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.661e-05/0.2819, allocations: 4 kB / 453.1 MB, free: 1.625 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.447e-05/0.282, allocations: 40 kB / 453.1 MB, free: 1.586 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.193e-05/0.282, allocations: 24 kB / 453.1 MB, free: 1.562 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001287/0.2833, allocations: 0.6324 MB / 453.8 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005832/0.2891, allocations: 3.552 MB / 457.3 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/0.2902, allocations: 413.9 kB / 457.7 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003079/0.2905, allocations: 151.6 kB / 457.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.638e-05/0.2905, allocations: 12 kB / 457.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/0.2906, allocations: 30.56 kB / 457.9 MB, free: 12.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 4.509e-06/0.2906, allocations: 3.984 kB / 457.9 MB, free: 12.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.002682/0.2932, allocations: 1.185 MB / 459.1 MB, free: 11.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/0.2934, allocations: 140.5 kB / 459.2 MB, free: 11.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001182/0.2945, allocations: 0.8252 MB / 460.1 MB, free: 10.34 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.162e-05/0.2946, allocations: 37.7 kB / 460.1 MB, free: 10.3 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004843/0.2951, allocations: 0.6086 MB / 460.7 MB, free: 9.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001329/0.2952, allocations: 154.7 kB / 460.9 MB, free: 9.527 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002172/0.2954, allocations: 142.6 kB / 461 MB, free: 9.379 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.2956, allocations: 334 kB / 461.3 MB, free: 9.047 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003544/0.2959, allocations: 176.8 kB / 461.5 MB, free: 8.871 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006647/0.2966, allocations: 0.5661 MB / 462.1 MB, free: 8.133 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009965/0.2976, allocations: 0.6828 MB / 462.8 MB, free: 7.305 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.084e-06/0.2976, allocations: 4 kB / 462.8 MB, free: 7.301 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001358/0.2989, allocations: 0.7434 MB / 463.5 MB, free: 6.547 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.345e-05/0.299, allocations: 10.5 kB / 463.5 MB, free: 6.539 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.176e-05/0.299, allocations: 12 kB / 463.5 MB, free: 6.527 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001686/0.2992, allocations: 36.78 kB / 463.6 MB, free: 6.488 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005949/0.2998, allocations: 168.2 kB / 463.7 MB, free: 6.324 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001147/0.3009, allocations: 1.268 MB / 465 MB, free: 4.957 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005769/0.3015, allocations: 39.94 kB / 465 MB, free: 4.918 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.078e-05/0.3015, allocations: 36 kB / 465.1 MB, free: 4.883 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006264/0.3022, allocations: 354.2 kB / 465.4 MB, free: 4.531 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006221/0.3028, allocations: 0.5544 MB / 466 MB, free: 3.809 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009144/0.3037, allocations: 0.6636 MB / 466.6 MB, free: 3 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.042e-06/0.3037, allocations: 4 kB / 466.6 MB, free: 2.996 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001228/0.3049, allocations: 0.7165 MB / 467.4 MB, free: 2.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.3049, allocations: 8 kB / 467.4 MB, free: 2.262 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.305, allocations: 16.09 kB / 467.4 MB, free: 2.246 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001008/0.3051, allocations: 36.84 kB / 467.4 MB, free: 2.207 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000539/0.3056, allocations: 163.7 kB / 467.6 MB, free: 2.047 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001038/0.3066, allocations: 1.268 MB / 468.8 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005564/0.3072, allocations: 40.09 kB / 468.9 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.941e-05/0.3072, allocations: 36 kB / 468.9 MB, free: 0.6055 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.0002244/0.3075, allocations: 224.7 kB / 469.1 MB, free: 388 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001376/0.3076, allocations: 95.38 kB / 469.2 MB, free: 292 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008943/0.3085, allocations: 430.3 kB / 469.6 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.3085, allocations: 4 kB / 469.6 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.3085, allocations: 4 kB / 469.7 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.3085, allocations: 4 kB / 469.7 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002091/0.3106, allocations: 1.13 MB / 470.8 MB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.3106, allocations: 4 kB / 470.8 MB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003836/0.311, allocations: 88.05 kB / 470.9 MB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.218e-05/0.3111, allocations: 28.8 kB / 470.9 MB, free: 14.53 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.753e-05/0.3111, allocations: 11.98 kB / 470.9 MB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001053/0.3122, allocations: 1.237 MB / 472.2 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.3122, allocations: 4.031 kB / 472.2 MB, free: 13.17 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001181/0.3133, allocations: 0.7112 MB / 472.9 MB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003105/0.3137, allocations: 127.4 kB / 473 MB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.247e-05/0.3138, allocations: 8 kB / 473 MB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004106/0.3142, allocations: 19.98 kB / 473 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.358e-05/0.3142, allocations: 35.88 kB / 473.1 MB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.378e-05/0.3143, allocations: 12 kB / 473.1 MB, free: 12.22 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008081/0.3151, allocations: 0.5537 MB / 473.6 MB, free: 11.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3151, allocations: 3.938 kB / 473.6 MB, free: 11.67 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001234/0.3163, allocations: 344 kB / 474 MB, free: 11.34 MB / 382.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.000258/0.3166, allocations: 126.7 kB / 474.1 MB, free: 11.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001784/0.3183, allocations: 0.927 MB / 475 MB, free: 10.26 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.3183, allocations: 4 kB / 475 MB, free: 10.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004821/0.3188, allocations: 282.5 kB / 475.3 MB, free: 9.965 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001151/0.32, allocations: 215.3 kB / 475.5 MB, free: 9.754 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003355/0.3233, allocations: 1.861 MB / 477.4 MB, free: 7.832 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005169/0.3239, allocations: 439.4 kB / 477.8 MB, free: 7.367 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002081/0.3241, allocations: 59.44 kB / 477.8 MB, free: 7.309 MB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3241, allocations: 3.938 kB / 477.9 MB, free: 7.305 MB / 382.1 MB Notification: Performance of Templates: time 0.02457/0.3486, allocations: 17.06 MB / 494.9 MB, free: 6.277 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile [Timeout 660] (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) [Timeout 480] 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.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.919218556955457]