Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.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.001758/0.001758, 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.002231/0.002231, 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.441/1.441, allocations: 225.7 MB / 253.3 MB, free: 12.81 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.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|PI.x|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|PI.x|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001646/0.001646, allocations: 51.91 kB / 371.7 MB, free: 9.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.2673, allocations: 52.18 MB / 423.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01182/0.2791, allocations: 8.562 MB / 432.4 MB, free: 5.824 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007571/0.2867, allocations: 3.37 MB / 435.8 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001638/0.2883, allocations: 59.62 kB / 435.9 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002325/0.2906, allocations: 0.6405 MB / 436.5 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003168/0.2938, allocations: 0.8817 MB / 437.4 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001623/0.2954, allocations: 469.5 kB / 437.8 MB, free: 408 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004543/0.3, allocations: 2.646 MB / 440.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002337/0.3023, allocations: 1.065 MB / 441.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002324/0.3046, allocations: 1.219 MB / 442.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003129/0.3078, allocations: 1.459 MB / 444.2 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008632/0.3086, allocations: 304 kB / 444.5 MB, free: 9.637 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001781/0.3104, allocations: 0.5541 MB / 445.1 MB, free: 9.082 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001702/0.3121, allocations: 1.036 MB / 446.1 MB, free: 8.043 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002533/0.3146, allocations: 1.198 MB / 447.3 MB, free: 6.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005457/0.3201, allocations: 4.316 MB / 451.6 MB, free: 2.508 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.3201, allocations: 4 kB / 451.6 MB, free: 2.504 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.544e-06/0.3201, allocations: 0 / 451.6 MB, free: 2.504 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001068/0.3202, allocations: 0 / 451.6 MB, free: 2.504 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.006991/0.3272, allocations: 3.168 MB / 454.8 MB, free: 15.28 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.3273, allocations: 16.03 kB / 454.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009234/0.3282, allocations: 342.9 kB / 455.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003356/0.3315, allocations: 1.632 MB / 456.8 MB, free: 13.26 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001301/0.3317, allocations: 148 kB / 456.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003629/0.332, allocations: 215.9 kB / 457.1 MB, free: 12.9 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005052/0.3371, allocations: 2.795 MB / 459.9 MB, free: 10 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.23e-05/0.3371, allocations: 11.88 kB / 459.9 MB, free: 9.992 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000193/0.3373, allocations: 80 kB / 460 MB, free: 9.914 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001309/0.3375, allocations: 95.92 kB / 460.1 MB, free: 9.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004335/0.3418, allocations: 2.272 MB / 462.4 MB, free: 7.547 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01391/0.3557, allocations: 7.067 MB / 469.5 MB, free: 300 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003154/0.3589, allocations: 1.316 MB / 470.8 MB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002089/0.361, allocations: 1.016 MB / 471.8 MB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002195/0.3612, allocations: 48.97 kB / 471.8 MB, free: 13.91 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.542e-05/0.3612, allocations: 51.55 kB / 471.9 MB, free: 13.85 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 5.911e-06/0.3612, allocations: 4 kB / 471.9 MB, free: 13.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.0139/0.3751, allocations: 6.101 MB / 478 MB, free: 7.699 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.117e-05/0.3752, allocations: 64.72 kB / 478 MB, free: 7.625 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003211/0.3784, allocations: 2.014 MB / 480.1 MB, free: 5.605 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002255/0.3786, allocations: 53.7 kB / 480.1 MB, free: 5.547 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009912/0.3796, allocations: 1.14 MB / 481.3 MB, free: 4.395 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004775/0.3801, allocations: 479.8 kB / 481.7 MB, free: 3.922 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004321/0.3805, allocations: 243.5 kB / 482 MB, free: 3.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001891/0.3807, allocations: 357.9 kB / 482.3 MB, free: 3.324 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001493/0.3822, allocations: 0.7613 MB / 483.1 MB, free: 2.562 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001639/0.3839, allocations: 1.009 MB / 484.1 MB, free: 1.465 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003191/0.387, allocations: 1.865 MB / 485.9 MB, free: 15.5 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.3871, allocations: 4 kB / 486 MB, free: 15.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005636/0.3927, allocations: 2.731 MB / 488.7 MB, free: 12.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.389e-05/0.3927, allocations: 11.94 kB / 488.7 MB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.805e-05/0.3927, allocations: 8.25 kB / 488.7 MB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002117/0.3949, allocations: 0.7811 MB / 489.5 MB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001207/0.3961, allocations: 267.6 kB / 489.7 MB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01344/0.4095, allocations: 9.225 MB / 499 MB, free: 2.254 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001471/0.411, allocations: 100 kB / 499.1 MB, free: 2.156 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001698/0.4112, allocations: 51.98 kB / 499.1 MB, free: 2.105 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 122 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001468/0.4126, allocations: 0.7471 MB / 499.9 MB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004883/0.4131, allocations: 198.7 kB / 0.4883 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004871/0.418, allocations: 2.46 MB / 0.4907 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.739e-05/0.418, allocations: 19.98 kB / 0.4908 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.418, allocations: 4 kB / 0.4908 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.272e-05/0.418, allocations: 7.984 kB / 0.4908 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008964/0.427, allocations: 4.369 MB / 0.495 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/0.427, allocations: 0 / 0.495 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001044/0.4281, allocations: 219.8 kB / 0.4952 GB, free: 9.98 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001813/0.4299, allocations: 0.6433 MB / 0.4959 GB, free: 9.324 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001125/0.43, allocations: 39.92 kB / 0.4959 GB, free: 9.285 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01054/0.4405, allocations: 8.27 MB / 0.504 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.052e-06/0.4405, allocations: 3.984 kB / 0.504 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006794/0.4473, allocations: 3.517 MB / 0.5074 GB, free: 13.16 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001284/0.4486, allocations: 354.6 kB / 0.5078 GB, free: 12.81 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003181/0.4489, allocations: 32.06 kB / 0.5078 GB, free: 12.78 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009952/0.4499, allocations: 83.89 kB / 0.5079 GB, free: 12.7 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000301/0.4502, allocations: 116.7 kB / 0.508 GB, free: 12.58 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001023/0.4503, allocations: 39.92 kB / 0.508 GB, free: 12.54 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002161/0.4525, allocations: 1.407 MB / 0.5094 GB, free: 11.14 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4525, allocations: 0 / 0.5094 GB, free: 11.14 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001875/0.4544, allocations: 0.5234 MB / 0.5099 GB, free: 10.62 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * 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 (97): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,12,100.0%), (1,6,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001763/0.4561, allocations: 493.2 kB / 0.5104 GB, free: 10.28 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004655/0.4608, allocations: 2.309 MB / 0.5126 GB, free: 7.941 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.072e-06/0.4608, allocations: 0 / 0.5126 GB, free: 7.941 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002782/0.4636, allocations: 1.449 MB / 0.5141 GB, free: 6.453 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002173/0.4657, allocations: 382.6 kB / 0.5144 GB, free: 6.082 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009164/0.4749, allocations: 5.262 MB / 0.5196 GB, free: 0.7695 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001722/0.4766, allocations: 1.356 MB / 0.5209 GB, free: 15.38 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00061/0.4772, allocations: 135.4 kB / 0.521 GB, free: 15.24 MB / 446.1 MB Notification: Performance of SimCode: time 1.233e-06/0.4772, allocations: 0 / 0.521 GB, free: 15.24 MB / 446.1 MB Notification: Performance of Templates: time 0.253/0.7302, allocations: 63.97 MB / 0.5835 GB, free: 68.18 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.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: 14.103621794842184]