Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001202/0.001202, allocations: 121.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00128/0.00128, allocations: 203.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 246.9 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002032/0.002032, allocations: 59.89 kB / 358.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2974/0.2994, allocations: 50.53 MB / 409.3 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz): time 0.0113/0.3108, allocations: 9.731 MB / 419 MB, free: 7.809 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005955/0.3168, allocations: 3.093 MB / 422.1 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001553/0.3184, allocations: 51.81 kB / 422.1 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001792/0.3202, allocations: 0.66 MB / 422.8 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002363/0.3226, allocations: 0.7765 MB / 423.6 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008866/0.3235, allocations: 387.4 kB / 424 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002817/0.3263, allocations: 2.436 MB / 426.4 MB, free: 396 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001999/0.3283, allocations: 1.747 MB / 428.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001572/0.3299, allocations: 1.094 MB / 429.2 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001784/0.3317, allocations: 1.319 MB / 430.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004245/0.3322, allocations: 280 kB / 430.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007715/0.3329, allocations: 375.8 kB / 431.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008016/0.3338, allocations: 0.7791 MB / 432 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001372/0.3351, allocations: 1.272 MB / 433.2 MB, free: 9.469 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003484/0.3386, allocations: 3.654 MB / 436.9 MB, free: 5.805 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3387, allocations: 0 / 436.9 MB, free: 5.805 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.3387, allocations: 0 / 436.9 MB, free: 5.805 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.009e-05/0.3388, allocations: 4 kB / 436.9 MB, free: 5.801 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.005052/0.3438, allocations: 2.595 MB / 439.5 MB, free: 3.148 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.3439, allocations: 8.031 kB / 439.5 MB, free: 3.141 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000811/0.3447, allocations: 282 kB / 439.8 MB, free: 2.863 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002309/0.347, allocations: 1.353 MB / 441.1 MB, free: 1.453 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001311/0.3471, allocations: 144.2 kB / 441.3 MB, free: 1.312 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002934/0.3474, allocations: 203.8 kB / 441.5 MB, free: 1.113 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003806/0.3513, allocations: 2.411 MB / 443.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.175e-05/0.3513, allocations: 11.91 kB / 443.9 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001792/0.3515, allocations: 83.97 kB / 444 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-05/0.3516, allocations: 91.62 kB / 444.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003207/0.3548, allocations: 1.962 MB / 446 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01206/0.3669, allocations: 7.762 MB / 453.8 MB, free: 4.508 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001725/0.3687, allocations: 1.231 MB / 455 MB, free: 3.23 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001776/0.3705, allocations: 0.9644 MB / 456 MB, free: 2.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002776/0.3708, allocations: 126.1 kB / 456.1 MB, free: 2.125 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.625e-05/0.3708, allocations: 43.56 kB / 456.1 MB, free: 2.074 MB / 366.1 MB Notification: Performance of pre-optimization done (n=95): time 3.286e-06/0.3708, allocations: 0 / 456.1 MB, free: 2.074 MB / 366.1 MB Notification: Performance of matching and sorting (n=111): time 0.0126/0.3834, allocations: 5.865 MB / 462 MB, free: 12.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.449e-05/0.3835, allocations: 68.34 kB / 462.1 MB, free: 11.99 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001958/0.3855, allocations: 1.306 MB / 463.4 MB, free: 10.67 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.156e-05/0.3856, allocations: 41.7 kB / 463.4 MB, free: 10.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006479/0.3862, allocations: 0.9315 MB / 464.4 MB, free: 9.676 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003796/0.3866, allocations: 394.4 kB / 464.7 MB, free: 9.285 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003849/0.387, allocations: 247.5 kB / 465 MB, free: 9.039 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.3872, allocations: 357.9 kB / 465.3 MB, free: 8.684 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009758/0.3882, allocations: 0.6442 MB / 466 MB, free: 8.039 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001267/0.3894, allocations: 0.9926 MB / 467 MB, free: 6.898 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002391/0.3918, allocations: 1.735 MB / 468.7 MB, free: 5.012 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.141e-06/0.3919, allocations: 0 / 468.7 MB, free: 5.012 MB / 382.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003804/0.3957, allocations: 2.253 MB / 471 MB, free: 2.734 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.3957, allocations: 12.03 kB / 471 MB, free: 2.723 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.62e-05/0.3957, allocations: 12 kB / 471 MB, free: 2.711 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001215/0.3969, allocations: 491.9 kB / 471.5 MB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001108/0.3981, allocations: 303.5 kB / 471.8 MB, free: 1.918 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007143/0.4052, allocations: 7.127 MB / 478.9 MB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001295/0.4066, allocations: 95.91 kB / 479 MB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001161/0.4067, allocations: 56 kB / 479 MB, free: 10.23 MB / 398.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.001098/0.4078, allocations: 0.5984 MB / 479.6 MB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002787/0.4081, allocations: 150.2 kB / 479.8 MB, free: 9.473 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003393/0.4115, allocations: 1.976 MB / 481.8 MB, free: 7.465 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.316e-05/0.4115, allocations: 16 kB / 481.8 MB, free: 7.449 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.4115, allocations: 4 kB / 481.8 MB, free: 7.445 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/0.4115, allocations: 3.984 kB / 481.8 MB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006941/0.4185, allocations: 4.125 MB / 485.9 MB, free: 3.211 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/0.4185, allocations: 0 / 485.9 MB, free: 3.211 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008085/0.4193, allocations: 187.8 kB / 486.1 MB, free: 3.027 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001453/0.4208, allocations: 0.5309 MB / 486.6 MB, free: 2.48 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/0.4209, allocations: 43.91 kB / 486.7 MB, free: 2.438 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009171/0.4301, allocations: 8.744 MB / 495.4 MB, free: 9.141 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.214e-06/0.4302, allocations: 7.969 kB / 495.4 MB, free: 9.133 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005246/0.4354, allocations: 2.855 MB / 498.3 MB, free: 6.215 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001095/0.4365, allocations: 355.2 kB / 498.6 MB, free: 5.848 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004524/0.437, allocations: 24 kB / 498.6 MB, free: 5.824 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001153/0.4382, allocations: 67.92 kB / 498.7 MB, free: 5.758 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003073/0.4385, allocations: 92.84 kB / 498.8 MB, free: 5.668 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.898e-05/0.4386, allocations: 35.98 kB / 498.8 MB, free: 5.633 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001783/0.4404, allocations: 0.8922 MB / 499.7 MB, free: 4.738 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4404, allocations: 0 / 499.7 MB, free: 4.738 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002038/0.4425, allocations: 436 kB / 0.4884 GB, free: 4.312 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.0005036/0.443, allocations: 198.9 kB / 0.4886 GB, free: 4.105 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003566/0.4466, allocations: 2.232 MB / 0.4908 GB, free: 1.793 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.353e-06/0.4466, allocations: 4 kB / 0.4908 GB, free: 1.789 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002219/0.4488, allocations: 1.498 MB / 0.4923 GB, free: 224 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002191/0.451, allocations: 415.6 kB / 0.4927 GB, free: 15.82 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007371/0.4584, allocations: 4.105 MB / 0.4967 GB, free: 11.65 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001961/0.4604, allocations: 1.65 MB / 0.4983 GB, free: 9.969 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001194/0.4616, allocations: 328.8 kB / 0.4986 GB, free: 9.641 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003879/0.462, allocations: 99.42 kB / 0.4987 GB, free: 9.543 MB / 430.1 MB Notification: Performance of SimCode: time 3.396e-06/0.462, allocations: 0 / 0.4987 GB, free: 9.543 MB / 430.1 MB Notification: Performance of Templates: time 0.04088/0.5029, allocations: 24.18 MB / 0.5223 GB, free: 1.59 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Steinmetz/IMC_Steinmetz.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches