Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.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_Steinmetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|cRun.v|cStart.v|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|cRun.v|cStart.v|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 103.7 kB / 17.7 MB, free: 5.352 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.001039/0.001039, allocations: 187.7 kB / 18.64 MB, free: 4.426 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.317/1.317, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009852/0.0009853, allocations: 51.92 kB / 351.9 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2602, allocations: 49.44 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz): time 0.01152/0.2718, allocations: 9.701 MB / 411.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006356/0.2782, allocations: 3.015 MB / 414.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001546/0.2798, allocations: 47.81 kB / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002033/0.2819, allocations: 0.6248 MB / 414.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003057/0.285, allocations: 0.7414 MB / 415.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001336/0.2863, allocations: 375.4 kB / 415.9 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003755/0.2901, allocations: 2.417 MB / 418.3 MB, free: 7.922 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002791/0.2929, allocations: 1.751 MB / 420 MB, free: 6.125 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001977/0.2949, allocations: 1.075 MB / 421.1 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002367/0.2973, allocations: 1.315 MB / 422.4 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008125/0.2981, allocations: 280 kB / 422.7 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001266/0.2994, allocations: 367.8 kB / 423.1 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001177/0.3006, allocations: 0.7674 MB / 423.8 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002397/0.303, allocations: 1.279 MB / 425.1 MB, free: 1.039 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003694/0.3067, allocations: 3.63 MB / 428.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.3067, allocations: 3.938 kB / 428.7 MB, free: 13.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.3067, allocations: 0 / 428.7 MB, free: 13.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.664e-05/0.3068, allocations: 0 / 428.7 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: 491 * Number of variables: 491 Notification: Performance of Generate backend data structure: time 0.004992/0.3118, allocations: 2.583 MB / 431.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.3119, allocations: 8.031 kB / 431.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006758/0.3125, allocations: 266 kB / 431.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002119/0.3147, allocations: 1.349 MB / 432.9 MB, free: 9.078 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001141/0.3148, allocations: 140.2 kB / 433.1 MB, free: 8.941 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002801/0.3151, allocations: 200 kB / 433.3 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003721/0.3188, allocations: 2.419 MB / 435.7 MB, free: 6.289 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.48e-05/0.3189, allocations: 3.906 kB / 435.7 MB, free: 6.285 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001668/0.3191, allocations: 83.94 kB / 435.8 MB, free: 6.203 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.724e-05/0.3192, allocations: 95.61 kB / 435.9 MB, free: 6.109 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003108/0.3223, allocations: 1.959 MB / 437.8 MB, free: 4.148 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01177/0.3341, allocations: 7.758 MB / 445.6 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001613/0.3357, allocations: 1.243 MB / 446.8 MB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001615/0.3373, allocations: 0.9323 MB / 447.8 MB, free: 9.922 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002286/0.3376, allocations: 118.1 kB / 447.9 MB, free: 9.785 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.734e-05/0.3376, allocations: 43.56 kB / 447.9 MB, free: 9.734 MB / 366.1 MB Notification: Performance of pre-optimization done (n=95): time 2.815e-06/0.3376, allocations: 4 kB / 447.9 MB, free: 9.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=111): time 0.01231/0.35, allocations: 5.862 MB / 453.8 MB, free: 3.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.921e-05/0.35, allocations: 72.39 kB / 453.9 MB, free: 3.645 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001808/0.3519, allocations: 1.306 MB / 455.2 MB, free: 2.332 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.903e-05/0.352, allocations: 49.7 kB / 455.2 MB, free: 2.277 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006238/0.3526, allocations: 0.916 MB / 456.1 MB, free: 1.348 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003133/0.3529, allocations: 386.4 kB / 456.5 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003652/0.3533, allocations: 251.4 kB / 456.8 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.3534, allocations: 361.9 kB / 457.1 MB, free: 364 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009538/0.3544, allocations: 0.6364 MB / 457.7 MB, free: 15.72 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00117/0.3556, allocations: 1.008 MB / 458.8 MB, free: 14.56 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00218/0.3578, allocations: 1.724 MB / 460.5 MB, free: 12.69 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.264e-06/0.3578, allocations: 4 kB / 460.5 MB, free: 12.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003656/0.3615, allocations: 2.245 MB / 462.7 MB, free: 10.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.614e-05/0.3615, allocations: 12 kB / 462.7 MB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.122e-05/0.3615, allocations: 8 kB / 462.7 MB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001191/0.3627, allocations: 496.2 kB / 463.2 MB, free: 9.895 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001058/0.3638, allocations: 307.5 kB / 463.5 MB, free: 9.594 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006922/0.3707, allocations: 7.139 MB / 470.7 MB, free: 2.039 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001201/0.372, allocations: 79.91 kB / 470.7 MB, free: 1.961 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000162/0.3721, allocations: 56 kB / 470.8 MB, free: 1.906 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 2 (idealOpener.control,idealCloser.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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%), (2,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001114/0.3733, allocations: 0.5994 MB / 471.4 MB, free: 1.297 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003789/0.3736, allocations: 150.2 kB / 471.5 MB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003496/0.3771, allocations: 1.968 MB / 473.5 MB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.692e-05/0.3772, allocations: 15.98 kB / 473.5 MB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.615e-05/0.3772, allocations: 4 kB / 473.5 MB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/0.3772, allocations: 3.984 kB / 473.5 MB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007103/0.3843, allocations: 4.121 MB / 477.7 MB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/0.3844, allocations: 0 / 477.7 MB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008119/0.3852, allocations: 188 kB / 477.8 MB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001464/0.3867, allocations: 0.5426 MB / 478.4 MB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.449e-05/0.3868, allocations: 27.92 kB / 478.4 MB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008184/0.395, allocations: 8.754 MB / 487.2 MB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/0.395, allocations: 7.969 kB / 487.2 MB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004632/0.3996, allocations: 2.851 MB / 490 MB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008405/0.4005, allocations: 359.2 kB / 490.4 MB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000377/0.4009, allocations: 24 kB / 490.4 MB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00093/0.4018, allocations: 67.92 kB / 490.5 MB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002541/0.4021, allocations: 92.84 kB / 490.6 MB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.831e-05/0.4022, allocations: 31.98 kB / 490.6 MB, free: 13.33 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001559/0.4037, allocations: 0.8878 MB / 491.5 MB, free: 12.44 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.4038, allocations: 0 / 491.5 MB, free: 12.44 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001788/0.4056, allocations: 440 kB / 491.9 MB, free: 12.01 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(2,12,100.0%), (1,1,100.0%), (2,8,100.0%), (2,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.0004227/0.406, allocations: 191 kB / 492.1 MB, free: 11.81 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003605/0.4096, allocations: 2.24 MB / 494.3 MB, free: 9.492 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.4096, allocations: 3.938 kB / 494.3 MB, free: 9.488 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002266/0.4119, allocations: 1.495 MB / 495.8 MB, free: 7.922 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002244/0.4142, allocations: 422 kB / 496.2 MB, free: 7.516 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00729/0.4215, allocations: 4.151 MB / 0.4887 GB, free: 3.301 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001635/0.4231, allocations: 1.634 MB / 0.4903 GB, free: 1.633 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004947/0.4236, allocations: 103.4 kB / 0.4904 GB, free: 1.531 MB / 414.1 MB Notification: Performance of SimCode: time 1.843e-06/0.4237, allocations: 8 kB / 0.4904 GB, free: 1.523 MB / 414.1 MB Notification: Performance of Templates: time 0.2855/0.7092, allocations: 70.65 MB / 0.5594 GB, free: 122.1 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Steinmetz/IMC_Steinmetz.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches