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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=100000,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=100000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001516/0.001516, allocations: 110.9 kB / 17.74 MB, free: 5.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001734/0.001734, allocations: 184.5 kB / 18.67 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001064/0.001065, allocations: 47.92 kB / 352 MB, free: 3.195 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2598/0.2609, allocations: 49.43 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01029/0.2713, allocations: 9.661 MB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00661/0.2779, allocations: 3.549 MB / 414.7 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001478/0.2794, allocations: 55.75 kB / 414.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001788/0.2813, allocations: 0.652 MB / 415.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002349/0.2836, allocations: 0.831 MB / 416.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001179/0.2848, allocations: 471.1 kB / 416.7 MB, free: 9.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003078/0.2879, allocations: 2.631 MB / 419.3 MB, free: 6.949 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00207/0.29, allocations: 1.877 MB / 421.2 MB, free: 5.008 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001678/0.2917, allocations: 1.187 MB / 422.3 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002046/0.2938, allocations: 1.498 MB / 423.8 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004769/0.2942, allocations: 304 kB / 424.1 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001164/0.2954, allocations: 0.5698 MB / 424.7 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000923/0.2964, allocations: 1.028 MB / 425.7 MB, free: 424 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001634/0.298, allocations: 1.481 MB / 427.2 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004159/0.3022, allocations: 4.288 MB / 431.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.3022, allocations: 7.938 kB / 431.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3022, allocations: 0 / 431.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.823e-05/0.3023, allocations: 0 / 431.5 MB, free: 10.62 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.006108/0.3084, allocations: 3.161 MB / 434.7 MB, free: 7.387 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.702e-05/0.3085, allocations: 8.031 kB / 434.7 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007783/0.3093, allocations: 329.2 kB / 435 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00261/0.3119, allocations: 1.689 MB / 436.7 MB, free: 5.312 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001163/0.312, allocations: 163.9 kB / 436.9 MB, free: 5.148 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002989/0.3123, allocations: 199.9 kB / 437.1 MB, free: 4.953 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00441/0.3168, allocations: 2.694 MB / 439.7 MB, free: 2.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.716e-05/0.3168, allocations: 7.938 kB / 439.8 MB, free: 2.172 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000185/0.317, allocations: 83.98 kB / 439.8 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00011/0.3171, allocations: 95.92 kB / 439.9 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003794/0.3209, allocations: 2.283 MB / 442.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01233/0.3333, allocations: 8.134 MB / 450.3 MB, free: 7.371 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002789/0.3361, allocations: 1.631 MB / 452 MB, free: 5.672 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001874/0.338, allocations: 1.094 MB / 453.1 MB, free: 4.578 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002532/0.3383, allocations: 134 kB / 453.2 MB, free: 4.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.569e-05/0.3383, allocations: 47.5 kB / 453.3 MB, free: 4.375 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 4.759e-06/0.3384, allocations: 3.984 kB / 453.3 MB, free: 4.371 MB / 366.1 MB Notification: Performance of matching and sorting (n=132): time 0.0128/0.3512, allocations: 6.456 MB / 459.7 MB, free: 13.78 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.944e-05/0.3512, allocations: 64.72 kB / 459.8 MB, free: 13.7 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002892/0.3541, allocations: 2.152 MB / 461.9 MB, free: 11.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001541/0.3543, allocations: 49.7 kB / 462 MB, free: 11.45 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007957/0.3551, allocations: 1.104 MB / 463.1 MB, free: 10.33 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004045/0.3555, allocations: 465.2 kB / 463.5 MB, free: 9.871 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004117/0.356, allocations: 239.5 kB / 463.8 MB, free: 9.633 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.3561, allocations: 365.9 kB / 464.1 MB, free: 9.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001289/0.3574, allocations: 0.7535 MB / 464.9 MB, free: 8.516 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001389/0.3588, allocations: 1.009 MB / 465.9 MB, free: 7.414 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002676/0.3615, allocations: 1.869 MB / 467.8 MB, free: 5.457 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.3615, allocations: 4 kB / 467.8 MB, free: 5.453 MB / 382.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005046/0.3666, allocations: 2.761 MB / 470.5 MB, free: 2.672 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.725e-05/0.3666, allocations: 8 kB / 470.5 MB, free: 2.664 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.846e-05/0.3666, allocations: 8 kB / 470.5 MB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002018/0.3686, allocations: 0.7892 MB / 471.3 MB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/0.3697, allocations: 267.6 kB / 471.6 MB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01114/0.3809, allocations: 9.598 MB / 481.2 MB, free: 7.719 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001423/0.3824, allocations: 91.89 kB / 481.3 MB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001332/0.3825, allocations: 51.98 kB / 481.3 MB, free: 7.578 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.001253/0.3838, allocations: 0.7395 MB / 482.1 MB, free: 6.828 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003647/0.3841, allocations: 205.5 kB / 482.3 MB, free: 6.625 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004283/0.3884, allocations: 2.488 MB / 484.8 MB, free: 4.113 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.591e-05/0.3885, allocations: 23.98 kB / 484.8 MB, free: 4.09 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.837e-06/0.3885, allocations: 8 kB / 484.8 MB, free: 4.082 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.493e-05/0.3885, allocations: 7.922 kB / 484.8 MB, free: 4.074 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008176/0.3967, allocations: 4.922 MB / 489.7 MB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.327e-06/0.3968, allocations: 7.938 kB / 489.7 MB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009939/0.3978, allocations: 219.8 kB / 489.9 MB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00171/0.3995, allocations: 0.651 MB / 490.6 MB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001033/0.3996, allocations: 31.98 kB / 490.6 MB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008589/0.4082, allocations: 8.727 MB / 499.3 MB, free: 5 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.4082, allocations: 0 / 499.3 MB, free: 5 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005992/0.4142, allocations: 3.532 MB / 0.4911 GB, free: 1.418 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009886/0.4153, allocations: 438.5 kB / 0.4915 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002275/0.4155, allocations: 31.98 kB / 0.4915 GB, free: 0.9375 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00089/0.4164, allocations: 83.91 kB / 0.4916 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003159/0.4167, allocations: 112.8 kB / 0.4917 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.641e-05/0.4168, allocations: 39.98 kB / 0.4918 GB, free: 0.707 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002036/0.4189, allocations: 1.515 MB / 0.4932 GB, free: 15.17 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4189, allocations: 0 / 0.4932 GB, free: 15.17 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001834/0.4207, allocations: 0.5234 MB / 0.4938 GB, free: 14.64 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.001129/0.4219, allocations: 466 kB / 0.4942 GB, free: 14.32 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004193/0.4261, allocations: 2.392 MB / 0.4965 GB, free: 11.9 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.4261, allocations: 0 / 0.4965 GB, free: 11.9 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002464/0.4286, allocations: 1.59 MB / 0.4981 GB, free: 10.25 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002242/0.4308, allocations: 447.5 kB / 0.4985 GB, free: 9.809 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008012/0.4388, allocations: 5.185 MB / 0.5036 GB, free: 4.574 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001517/0.4404, allocations: 1.936 MB / 0.5055 GB, free: 2.605 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006311/0.441, allocations: 135.4 kB / 0.5056 GB, free: 2.473 MB / 430.1 MB Notification: Performance of SimCode: time 8.31e-07/0.441, allocations: 0 / 0.5056 GB, free: 2.473 MB / 430.1 MB Notification: Performance of Templates: time 0.2814/0.7224, allocations: 64.3 MB / 0.5684 GB, free: 112.4 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.makefile (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) 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) Reference file matches