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.001752/0.001752, allocations: 105.2 kB / 19.8 MB, free: 2.516 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.002175/0.002175, allocations: 217.1 kB / 23 MB, free: 5.605 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.407/1.407, allocations: 230.2 MB / 256.2 MB, free: 8.559 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.001906/0.001906, allocations: 59.89 kB / 376.5 MB, free: 3.613 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2467, allocations: 53.33 MB / 429.8 MB, free: 7.566 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.009996/0.2567, allocations: 8.264 MB / 438.1 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004722/0.2614, allocations: 2.742 MB / 440.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000527/0.2619, allocations: 27.94 kB / 440.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001298/0.2632, allocations: 0.5606 MB / 441.4 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008848/0.2641, allocations: 472.5 kB / 441.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006732/0.2648, allocations: 359.4 kB / 442.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00147/0.2663, allocations: 1.502 MB / 443.7 MB, free: 9.598 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006405/0.2669, allocations: 431.5 kB / 444.1 MB, free: 9.148 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006596/0.2676, allocations: 0.568 MB / 444.7 MB, free: 8.578 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000657/0.2682, allocations: 0.6026 MB / 445.3 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000164/0.2684, allocations: 136 kB / 445.4 MB, free: 7.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002922/0.2687, allocations: 180 kB / 445.6 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002263/0.2689, allocations: 279 kB / 445.9 MB, free: 7.391 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000591/0.2695, allocations: 0.6685 MB / 446.6 MB, free: 6.719 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001899/0.2714, allocations: 1.727 MB / 448.3 MB, free: 4.984 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.2714, allocations: 0 / 448.3 MB, free: 4.984 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2714, allocations: 4 kB / 448.3 MB, free: 4.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.638e-05/0.2714, allocations: 3.938 kB / 448.3 MB, free: 4.977 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.002537/0.274, allocations: 1.541 MB / 449.8 MB, free: 3.383 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.274, allocations: 12.03 kB / 449.8 MB, free: 3.371 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000632/0.2746, allocations: 199.9 kB / 450 MB, free: 3.176 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001279/0.2759, allocations: 0.7947 MB / 450.8 MB, free: 2.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.773e-05/0.276, allocations: 77.94 kB / 450.9 MB, free: 2.262 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001515/0.2761, allocations: 99.95 kB / 451 MB, free: 2.164 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001594/0.2777, allocations: 0.9584 MB / 452 MB, free: 1.164 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.963e-05/0.2778, allocations: 15.88 kB / 452 MB, free: 1.148 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.944e-05/0.2778, allocations: 40 kB / 452 MB, free: 1.109 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.669e-05/0.2779, allocations: 27.94 kB / 452 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001229/0.2791, allocations: 0.6324 MB / 452.7 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005431/0.2845, allocations: 4.101 MB / 456.8 MB, free: 12.12 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009963/0.2855, allocations: 419.2 kB / 457.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002891/0.2858, allocations: 152.8 kB / 457.3 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.811e-05/0.2859, allocations: 4 kB / 457.3 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.441e-05/0.2859, allocations: 34.56 kB / 457.4 MB, free: 11.51 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 2.204e-06/0.2859, allocations: 4 kB / 457.4 MB, free: 11.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.002584/0.2885, allocations: 1.333 MB / 458.7 MB, free: 10.1 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.531e-05/0.2886, allocations: 136.5 kB / 458.8 MB, free: 9.938 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00126/0.2899, allocations: 0.8938 MB / 459.7 MB, free: 9.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.97e-05/0.2899, allocations: 29.7 kB / 459.8 MB, free: 8.984 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00051/0.2904, allocations: 0.6086 MB / 460.4 MB, free: 8.367 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.2906, allocations: 150.8 kB / 460.5 MB, free: 8.219 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002114/0.2908, allocations: 138.6 kB / 460.7 MB, free: 8.078 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.2909, allocations: 334 kB / 461 MB, free: 7.746 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003482/0.2913, allocations: 176.8 kB / 461.2 MB, free: 7.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006556/0.2919, allocations: 0.4946 MB / 461.7 MB, free: 6.922 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009597/0.2929, allocations: 0.6828 MB / 462.3 MB, free: 6.094 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.2929, allocations: 4 kB / 462.3 MB, free: 6.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001355/0.2942, allocations: 0.7475 MB / 463.1 MB, free: 5.332 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/0.2943, allocations: 12.22 kB / 463.1 MB, free: 5.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.856e-05/0.2943, allocations: 12 kB / 463.1 MB, free: 5.309 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001748/0.2945, allocations: 36.84 kB / 463.1 MB, free: 5.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005674/0.295, allocations: 163.7 kB / 463.3 MB, free: 5.109 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001196/0.2962, allocations: 1.394 MB / 464.7 MB, free: 3.574 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006053/0.2968, allocations: 43.88 kB / 464.7 MB, free: 3.531 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.824e-05/0.2969, allocations: 36.12 kB / 464.8 MB, free: 3.496 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006551/0.2975, allocations: 354.1 kB / 465.1 MB, free: 3.148 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006795/0.2982, allocations: 490.5 kB / 465.6 MB, free: 2.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009687/0.2992, allocations: 0.6561 MB / 466.3 MB, free: 1.719 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.741e-06/0.2992, allocations: 4 kB / 466.3 MB, free: 1.715 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001224/0.3004, allocations: 0.7235 MB / 467 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.3004, allocations: 12 kB / 467 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/0.3004, allocations: 12 kB / 467 MB, free: 0.957 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000123/0.3006, allocations: 45.47 kB / 467.1 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005195/0.3011, allocations: 171.7 kB / 467.2 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001163/0.3023, allocations: 1.382 MB / 468.6 MB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006048/0.3029, allocations: 32 kB / 468.6 MB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.034e-05/0.3029, allocations: 39.98 kB / 468.7 MB, free: 15.15 MB / 382.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.0002445/0.3032, allocations: 239.9 kB / 468.9 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001349/0.3033, allocations: 99.58 kB / 469 MB, free: 14.81 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008776/0.3042, allocations: 439.4 kB / 469.4 MB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.3042, allocations: 4 kB / 469.4 MB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/0.3042, allocations: 0 / 469.4 MB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.3042, allocations: 7.922 kB / 469.5 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002092/0.3063, allocations: 1.372 MB / 470.8 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.3063, allocations: 4 kB / 470.8 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003571/0.3066, allocations: 84.11 kB / 470.9 MB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.445e-05/0.3067, allocations: 16.86 kB / 470.9 MB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.127e-05/0.3068, allocations: 15.98 kB / 470.9 MB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001055/0.3078, allocations: 1.371 MB / 472.3 MB, free: 11.28 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.3078, allocations: 8.031 kB / 472.3 MB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001092/0.3089, allocations: 0.7111 MB / 473 MB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002916/0.3092, allocations: 212.4 kB / 473.2 MB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.612e-05/0.3093, allocations: 8 kB / 473.2 MB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004154/0.3097, allocations: 27.97 kB / 473.3 MB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.013e-05/0.3098, allocations: 27.91 kB / 473.3 MB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.285e-05/0.3098, allocations: 8 kB / 473.3 MB, free: 10.22 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008514/0.3107, allocations: 0.6132 MB / 473.9 MB, free: 9.598 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3107, allocations: 0 / 473.9 MB, free: 9.598 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001154/0.3118, allocations: 351.9 kB / 474.3 MB, free: 9.254 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.0002187/0.312, allocations: 131 kB / 474.4 MB, free: 9.113 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001629/0.3137, allocations: 0.9272 MB / 475.3 MB, free: 8.164 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3137, allocations: 256 / 475.3 MB, free: 8.164 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004216/0.3141, allocations: 282.4 kB / 475.6 MB, free: 7.875 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001068/0.3152, allocations: 252.5 kB / 475.8 MB, free: 7.641 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002941/0.3181, allocations: 1.819 MB / 477.7 MB, free: 5.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006481/0.3187, allocations: 1.021 MB / 478.7 MB, free: 4.719 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004313/0.3192, allocations: 131.3 kB / 478.8 MB, free: 4.586 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000142/0.3193, allocations: 63.38 kB / 478.9 MB, free: 4.523 MB / 382.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3193, allocations: 0 / 478.9 MB, free: 4.523 MB / 382.1 MB Notification: Performance of Templates: time 0.02188/0.3412, allocations: 11.11 MB / 490 MB, free: 9.508 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.833691804669797]