Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001656/0.001656, allocations: 112.5 kB / 21.19 MB, free: 0.7578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002054/0.002054, allocations: 209.8 kB / 24.5 MB, free: 4.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.396/1.396, allocations: 230.6 MB / 258.3 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001673/0.001673, allocations: 55.86 kB / 379 MB, free: 2.625 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.2472, allocations: 53.36 MB / 432.4 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.0106/0.2578, allocations: 8.254 MB / 440.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005127/0.263, allocations: 2.761 MB / 443.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000987/0.2639, allocations: 27.88 kB / 443.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001755/0.2657, allocations: 0.5629 MB / 444 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001487/0.2672, allocations: 468.5 kB / 444.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009515/0.2681, allocations: 363.5 kB / 444.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002271/0.2704, allocations: 1.503 MB / 446.3 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008865/0.2713, allocations: 428 kB / 446.7 MB, free: 8.531 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009894/0.2723, allocations: 0.5797 MB / 447.3 MB, free: 7.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00102/0.2733, allocations: 0.6026 MB / 447.9 MB, free: 7.344 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002668/0.2736, allocations: 136 kB / 448.1 MB, free: 7.211 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004579/0.274, allocations: 184 kB / 448.2 MB, free: 7.031 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002672/0.2743, allocations: 282.9 kB / 448.5 MB, free: 6.754 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008924/0.2752, allocations: 0.6685 MB / 449.2 MB, free: 6.082 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002293/0.2775, allocations: 1.735 MB / 450.9 MB, free: 4.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.2775, allocations: 0 / 450.9 MB, free: 4.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2775, allocations: 3.938 kB / 450.9 MB, free: 4.336 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.014e-05/0.2775, allocations: 0 / 450.9 MB, free: 4.336 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.00308/0.2806, allocations: 1.465 MB / 452.4 MB, free: 2.836 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.2807, allocations: 12.03 kB / 452.4 MB, free: 2.824 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006622/0.2813, allocations: 192 kB / 452.6 MB, free: 2.637 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001543/0.2829, allocations: 0.7251 MB / 453.3 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.383e-05/0.2829, allocations: 77.94 kB / 453.4 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00015/0.2831, allocations: 99.95 kB / 453.5 MB, free: 1.707 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001734/0.2848, allocations: 0.9584 MB / 454.4 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.338e-05/0.2849, allocations: 0 / 454.4 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.367e-05/0.2849, allocations: 44 kB / 454.5 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.704e-05/0.285, allocations: 24 kB / 454.5 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001303/0.2863, allocations: 0.6402 MB / 455.2 MB, free: 0 / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0061/0.2924, allocations: 3.982 MB / 459.1 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001046/0.2934, allocations: 415 kB / 459.5 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002998/0.2937, allocations: 154.8 kB / 459.7 MB, free: 11.24 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.894e-05/0.2937, allocations: 7.984 kB / 459.7 MB, free: 11.23 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.988e-05/0.2938, allocations: 46.56 kB / 459.7 MB, free: 11.18 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 1.773e-06/0.2938, allocations: 0 / 459.7 MB, free: 11.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.002507/0.2963, allocations: 1.193 MB / 460.9 MB, free: 9.949 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.898e-05/0.2964, allocations: 132.5 kB / 461.1 MB, free: 9.789 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001335/0.2977, allocations: 0.8976 MB / 462 MB, free: 8.867 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.851e-05/0.2978, allocations: 29.7 kB / 462 MB, free: 8.832 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004952/0.2983, allocations: 0.6047 MB / 462.6 MB, free: 8.219 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000143/0.2984, allocations: 154.8 kB / 462.8 MB, free: 8.066 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001969/0.2986, allocations: 134.6 kB / 462.9 MB, free: 7.926 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.2988, allocations: 338 kB / 463.2 MB, free: 7.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003527/0.2991, allocations: 176.8 kB / 463.4 MB, free: 7.414 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006097/0.2997, allocations: 498.5 kB / 463.9 MB, free: 6.773 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001013/0.3007, allocations: 0.6828 MB / 464.6 MB, free: 5.945 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.347e-06/0.3007, allocations: 7.938 kB / 464.6 MB, free: 5.938 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001412/0.3021, allocations: 0.7476 MB / 465.3 MB, free: 5.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.3022, allocations: 8 kB / 465.3 MB, free: 5.172 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/0.3022, allocations: 12 kB / 465.3 MB, free: 5.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001745/0.3024, allocations: 40.78 kB / 465.4 MB, free: 5.117 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005889/0.3029, allocations: 163.7 kB / 465.5 MB, free: 4.957 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001234/0.3042, allocations: 1.295 MB / 466.8 MB, free: 3.551 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000586/0.3048, allocations: 44.09 kB / 466.9 MB, free: 3.508 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.149e-05/0.3048, allocations: 35.94 kB / 466.9 MB, free: 3.473 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005929/0.3054, allocations: 350.1 kB / 467.2 MB, free: 3.125 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005669/0.306, allocations: 486.5 kB / 467.7 MB, free: 2.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009197/0.3069, allocations: 0.6679 MB / 468.4 MB, free: 1.688 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.973e-06/0.3069, allocations: 4 kB / 468.4 MB, free: 1.684 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.00125/0.3082, allocations: 0.7319 MB / 469.1 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.3082, allocations: 8 kB / 469.1 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.515e-05/0.3082, allocations: 12 kB / 469.1 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.589e-05/0.3083, allocations: 32.84 kB / 469.2 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000601/0.3089, allocations: 171.6 kB / 469.3 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0011/0.31, allocations: 1.283 MB / 470.6 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000613/0.3106, allocations: 39.94 kB / 470.7 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.924e-05/0.3106, allocations: 32 kB / 470.7 MB, free: 15.25 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.00028/0.3109, allocations: 236 kB / 470.9 MB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002149/0.3111, allocations: 103.4 kB / 471 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009567/0.3121, allocations: 427.2 kB / 471.4 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.3121, allocations: 4 kB / 471.4 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.3121, allocations: 0 / 471.4 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/0.3121, allocations: 7.922 kB / 471.5 MB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002309/0.3144, allocations: 1.344 MB / 472.8 MB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.3144, allocations: 8.031 kB / 472.8 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003763/0.3148, allocations: 83.83 kB / 472.9 MB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.513e-05/0.3149, allocations: 20.84 kB / 472.9 MB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.116e-05/0.3149, allocations: 12 kB / 472.9 MB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001073/0.316, allocations: 1.275 MB / 474.2 MB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.316, allocations: 0 / 474.2 MB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001152/0.3172, allocations: 0.7113 MB / 474.9 MB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003364/0.3175, allocations: 135.3 kB / 475 MB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/0.3176, allocations: 8 kB / 475 MB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004268/0.318, allocations: 23.97 kB / 475.1 MB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.558e-05/0.3181, allocations: 27.95 kB / 475.1 MB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.462e-05/0.3181, allocations: 16 kB / 475.1 MB, free: 10.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009529/0.3191, allocations: 0.6092 MB / 475.7 MB, free: 9.965 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3191, allocations: 0 / 475.7 MB, free: 9.965 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001203/0.3203, allocations: 351.9 kB / 476.1 MB, free: 9.621 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.0002067/0.3205, allocations: 131.1 kB / 476.2 MB, free: 9.484 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001737/0.3222, allocations: 0.931 MB / 477.1 MB, free: 8.531 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.3222, allocations: 0 / 477.1 MB, free: 8.531 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004537/0.3227, allocations: 286.4 kB / 477.4 MB, free: 8.238 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.3238, allocations: 238.3 kB / 477.6 MB, free: 8.012 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003362/0.3272, allocations: 1.869 MB / 479.5 MB, free: 6.082 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007305/0.3279, allocations: 1.021 MB / 480.5 MB, free: 5.031 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002004/0.3281, allocations: 63.44 kB / 480.6 MB, free: 4.969 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3281, allocations: 0 / 480.6 MB, free: 4.969 MB / 382.1 MB Notification: Performance of Templates: time 0.03129/0.3594, allocations: 16.99 MB / 497.6 MB, free: 4.02 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 8.563591776881367]