Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00201/0.00201, allocations: 100 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002064/0.002064, allocations: 184.9 kB / 24.45 MB, free: 3.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.49/1.49, allocations: 225.7 MB / 253.3 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001601/0.001601, allocations: 47.92 kB / 371.7 MB, free: 9.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2397/0.2413, allocations: 52.17 MB / 423.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01065/0.252, allocations: 7.253 MB / 431.1 MB, free: 7.168 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004879/0.2569, allocations: 2.513 MB / 433.6 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007942/0.2577, allocations: 39.81 kB / 433.6 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00146/0.2591, allocations: 0.5074 MB / 434.1 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00109/0.2602, allocations: 472.5 kB / 434.6 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007327/0.2609, allocations: 367.5 kB / 435 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001706/0.2627, allocations: 1.51 MB / 436.5 MB, free: 1.766 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000708/0.2634, allocations: 392 kB / 436.9 MB, free: 1.363 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007779/0.2641, allocations: 0.5719 MB / 437.4 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006886/0.2648, allocations: 0.5244 MB / 437.9 MB, free: 268 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001817/0.265, allocations: 140 kB / 438.1 MB, free: 128 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000354/0.2654, allocations: 176 kB / 438.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002498/0.2656, allocations: 286.9 kB / 438.5 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000556/0.2662, allocations: 0.5365 MB / 439.1 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002008/0.2682, allocations: 1.735 MB / 440.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.2682, allocations: 0 / 440.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.2682, allocations: 0 / 440.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.268e-05/0.2682, allocations: 0 / 440.8 MB, free: 13.39 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.002623/0.2708, allocations: 1.477 MB / 442.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.2709, allocations: 12.03 kB / 442.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006446/0.2715, allocations: 192 kB / 442.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001406/0.2729, allocations: 0.7328 MB / 443.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.801e-05/0.273, allocations: 73.94 kB / 443.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001521/0.2731, allocations: 99.95 kB / 443.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001688/0.2748, allocations: 1.029 MB / 444.4 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.512e-05/0.2749, allocations: 4 kB / 444.4 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.343e-05/0.2749, allocations: 44 kB / 444.5 MB, free: 9.613 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.266e-05/0.275, allocations: 24 kB / 444.5 MB, free: 9.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001281/0.2762, allocations: 0.6324 MB / 445.1 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005247/0.2815, allocations: 3.555 MB / 448.7 MB, free: 5.195 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00105/0.2825, allocations: 408.2 kB / 449.1 MB, free: 4.789 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000304/0.2828, allocations: 156.7 kB / 449.2 MB, free: 4.633 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.344e-05/0.2829, allocations: 7.984 kB / 449.2 MB, free: 4.625 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.872e-05/0.2829, allocations: 34.56 kB / 449.3 MB, free: 4.582 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.264e-06/0.2829, allocations: 4 kB / 449.3 MB, free: 4.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002416/0.2853, allocations: 1.175 MB / 450.4 MB, free: 3.371 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.584e-05/0.2854, allocations: 110.8 kB / 450.6 MB, free: 3.238 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001106/0.2865, allocations: 0.8291 MB / 451.4 MB, free: 2.402 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.859e-05/0.2866, allocations: 33.7 kB / 451.4 MB, free: 2.363 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005062/0.2871, allocations: 0.6163 MB / 452 MB, free: 1.738 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001353/0.2872, allocations: 154.7 kB / 452.2 MB, free: 1.586 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001923/0.2874, allocations: 138.6 kB / 452.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.2876, allocations: 337.9 kB / 452.7 MB, free: 1.105 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003461/0.2879, allocations: 168.8 kB / 452.8 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006598/0.2886, allocations: 0.5362 MB / 453.4 MB, free: 244 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009952/0.2896, allocations: 0.6792 MB / 454 MB, free: 15.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.2896, allocations: 4 kB / 454 MB, free: 15.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001311/0.2909, allocations: 0.7395 MB / 454.8 MB, free: 14.66 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.2909, allocations: 12 kB / 454.8 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.2909, allocations: 8 kB / 454.8 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001536/0.2911, allocations: 36.84 kB / 454.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000579/0.2917, allocations: 172.2 kB / 455 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001127/0.2928, allocations: 1.26 MB / 456.3 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005112/0.2933, allocations: 35.98 kB / 456.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.978e-05/0.2933, allocations: 36 kB / 456.3 MB, free: 13 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006045/0.2939, allocations: 358.1 kB / 456.7 MB, free: 12.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006194/0.2946, allocations: 0.5284 MB / 457.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009305/0.2955, allocations: 0.6598 MB / 457.9 MB, free: 11.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.028e-06/0.2955, allocations: 0 / 457.9 MB, free: 11.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001228/0.2967, allocations: 0.7204 MB / 458.6 MB, free: 10.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.2967, allocations: 10.97 kB / 458.6 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.2968, allocations: 16.05 kB / 458.6 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.405e-05/0.2969, allocations: 32.86 kB / 458.6 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005452/0.2974, allocations: 171.7 kB / 458.8 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001062/0.2985, allocations: 1.273 MB / 460.1 MB, free: 8.828 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005134/0.299, allocations: 36.14 kB / 460.1 MB, free: 8.793 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.546e-05/0.299, allocations: 36 kB / 460.2 MB, free: 8.758 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.0002239/0.2992, allocations: 231.9 kB / 460.4 MB, free: 8.523 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001418/0.2994, allocations: 99.33 kB / 460.5 MB, free: 8.426 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008678/0.3003, allocations: 422.4 kB / 460.9 MB, free: 7.996 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.3003, allocations: 4 kB / 460.9 MB, free: 7.992 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.3003, allocations: 0 / 460.9 MB, free: 7.992 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.3003, allocations: 4 kB / 460.9 MB, free: 7.988 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001973/0.3022, allocations: 1.142 MB / 462 MB, free: 6.785 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.3022, allocations: 4 kB / 462 MB, free: 6.781 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003762/0.3026, allocations: 71.89 kB / 462.1 MB, free: 6.711 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.541e-05/0.3027, allocations: 29.02 kB / 462.1 MB, free: 6.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.095e-05/0.3027, allocations: 19.98 kB / 462.2 MB, free: 6.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001047/0.3038, allocations: 1.237 MB / 463.4 MB, free: 5.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/0.3038, allocations: 7.969 kB / 463.4 MB, free: 5.312 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00116/0.305, allocations: 0.7224 MB / 464.1 MB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002709/0.3052, allocations: 115.4 kB / 464.2 MB, free: 4.438 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.648e-05/0.3053, allocations: 11.98 kB / 464.3 MB, free: 4.426 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003893/0.3057, allocations: 23.98 kB / 464.3 MB, free: 4.402 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.805e-05/0.3058, allocations: 35.88 kB / 464.3 MB, free: 4.367 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.216e-05/0.3058, allocations: 8 kB / 464.3 MB, free: 4.359 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008093/0.3066, allocations: 0.5537 MB / 464.9 MB, free: 3.812 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3066, allocations: 4 kB / 464.9 MB, free: 3.809 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001195/0.3078, allocations: 347.9 kB / 465.2 MB, free: 3.469 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.0002125/0.308, allocations: 111.2 kB / 465.3 MB, free: 3.352 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001721/0.3097, allocations: 0.9343 MB / 466.3 MB, free: 2.395 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.3097, allocations: 3.938 kB / 466.3 MB, free: 2.391 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004602/0.3102, allocations: 283.3 kB / 466.5 MB, free: 2.102 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001121/0.3113, allocations: 230 kB / 466.8 MB, free: 1.875 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003342/0.3147, allocations: 1.874 MB / 468.6 MB, free: 15.94 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000503/0.3152, allocations: 439.7 kB / 469.1 MB, free: 15.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001761/0.3153, allocations: 55.44 kB / 469.1 MB, free: 15.42 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3153, allocations: 0 / 469.1 MB, free: 15.42 MB / 382.1 MB Notification: Performance of Templates: time 0.02459/0.3399, allocations: 17.04 MB / 486.2 MB, free: 14.43 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_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_4.0.0_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: 9.268355787266046]