Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.is.1.|smeeE.is.2.|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.is.1.|smeeM.is.2.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.stray.port_p.Phi.im|smeeM.stator.stray.port_p.Phi.re",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.is.1.|smeeE.is.2.|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.is.1.|smeeM.is.2.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.stray.port_p.Phi.im|smeeM.stator.stray.port_p.Phi.re",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 108.3 kB / 17.68 MB, free: 5.332 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.001157/0.001157, allocations: 192 kB / 18.62 MB, free: 4.41 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.292/1.292, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00101/0.00101, allocations: 46.59 kB / 302.1 MB, free: 5.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08137/0.08239, allocations: 49.44 MB / 351.5 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.1707/0.2532, allocations: 24.1 MB / 375.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0128/0.266, allocations: 7.126 MB / 382.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006352/0.2724, allocations: 143.6 kB / 382.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007325/0.2798, allocations: 1.578 MB / 384.5 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01128/0.2911, allocations: 2.293 MB / 386.8 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006123/0.2973, allocations: 1.439 MB / 388.2 MB, free: 7.695 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01324/0.3106, allocations: 7.2 MB / 395.4 MB, free: 4.113 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01201/0.3226, allocations: 5.558 MB / 400.9 MB, free: 1.484 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007879/0.3305, allocations: 3.195 MB / 404.1 MB, free: 15.64 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01156/0.3421, allocations: 3.828 MB / 408 MB, free: 12.47 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003606/0.3458, allocations: 0.875 MB / 408.8 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006306/0.3521, allocations: 1.305 MB / 410.2 MB, free: 10.31 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004451/0.3566, allocations: 2.125 MB / 412.3 MB, free: 8.207 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01046/0.3671, allocations: 3.781 MB / 416.1 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02207/0.3893, allocations: 11.47 MB / 427.5 MB, free: 9.176 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.3893, allocations: 7.938 kB / 427.5 MB, free: 9.168 MB / 334.1 MB Notification: Performance of FrontEnd: time 5.63e-06/0.3893, allocations: 0 / 427.5 MB, free: 9.168 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003121/0.3897, allocations: 3.938 kB / 427.5 MB, free: 9.164 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.03433/0.424, allocations: 7.4 MB / 434.9 MB, free: 1.715 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.547e-05/0.4241, allocations: 12.03 kB / 434.9 MB, free: 1.703 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01208/0.4362, allocations: 1.22 MB / 436.2 MB, free: 492 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009789/0.446, allocations: 4.14 MB / 440.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003843/0.4464, allocations: 426.5 kB / 440.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001579/0.448, allocations: 0.5523 MB / 441.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01552/0.4635, allocations: 7.284 MB / 448.6 MB, free: 4.031 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000167/0.4637, allocations: 11.84 kB / 448.6 MB, free: 4.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008484/0.4646, allocations: 230.6 kB / 448.8 MB, free: 3.797 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002629/0.4649, allocations: 267.3 kB / 449.1 MB, free: 3.535 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01186/0.4767, allocations: 6.123 MB / 455.2 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04191/0.5186, allocations: 23.39 MB / 478.6 MB, free: 5.57 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009589/0.5283, allocations: 8.705 MB / 487.3 MB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00475/0.5331, allocations: 2.393 MB / 489.7 MB, free: 9.531 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01463/0.5477, allocations: 6.91 MB / 496.6 MB, free: 2.43 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.559e-05/0.5478, allocations: 60.56 kB / 496.6 MB, free: 2.363 MB / 398.1 MB Notification: Performance of pre-optimization done (n=238): time 4.559e-06/0.5478, allocations: 0 / 496.6 MB, free: 2.363 MB / 398.1 MB Notification: Performance of matching and sorting (n=282): time 0.03202/0.5798, allocations: 13.7 MB / 0.4984 GB, free: 4.449 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.076e-05/0.5799, allocations: 81.59 kB / 0.4985 GB, free: 4.355 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006369/0.5863, allocations: 3.428 MB / 0.5018 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004751/0.5868, allocations: 69.7 kB / 0.5019 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002127/0.5889, allocations: 2.678 MB / 0.5045 GB, free: 14.16 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001197/0.5902, allocations: 0.9666 MB / 0.5054 GB, free: 13.18 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001488/0.5917, allocations: 0.6372 MB / 0.506 GB, free: 12.53 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.5918, allocations: 301.1 kB / 0.5063 GB, free: 12.23 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002941/0.5947, allocations: 1.541 MB / 0.5078 GB, free: 10.69 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003629/0.5984, allocations: 2.763 MB / 0.5105 GB, free: 7.391 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007135/0.6055, allocations: 4.602 MB / 0.515 GB, free: 2.215 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.156e-05/0.6056, allocations: 8 kB / 0.515 GB, free: 2.207 MB / 430.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.01106/0.6167, allocations: 5.471 MB / 0.5204 GB, free: 12.63 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.989e-05/0.6168, allocations: 20 kB / 0.5204 GB, free: 12.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.74e-05/0.6169, allocations: 40 kB / 0.5204 GB, free: 12.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00171/0.6186, allocations: 0.6633 MB / 0.5211 GB, free: 11.89 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003478/0.6221, allocations: 0.8579 MB / 0.5219 GB, free: 11.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01101/0.6331, allocations: 10.35 MB / 0.532 GB, free: 140 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.1671/0.8003, allocations: 213.3 kB / 0.5322 GB, free: 140.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007254/0.801, allocations: 167.4 kB / 0.5324 GB, free: 140.4 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 175 * 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 (430): * Single equations (assignments): 420 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 4 systems {(3,12,100.0%), (1,3,100.0%), (2,13,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002991/0.804, allocations: 1.627 MB / 0.534 GB, free: 140.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008452/0.8049, allocations: 387.4 kB / 0.5344 GB, free: 140.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00787/0.8127, allocations: 4.495 MB / 0.5387 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.737e-05/0.8128, allocations: 31.36 kB / 0.5388 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.47e-05/0.8129, allocations: 11.91 kB / 0.5388 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.571e-05/0.8129, allocations: 13.92 kB / 0.5388 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01681/0.8297, allocations: 9.89 MB / 0.5485 GB, free: 134.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-05/0.8298, allocations: 5.781 kB / 0.5485 GB, free: 134.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002075/0.8318, allocations: 0.4942 MB / 0.5489 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001652/0.8335, allocations: 0.7263 MB / 0.5497 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001904/0.8337, allocations: 70.88 kB / 0.5497 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01026/0.844, allocations: 14.11 MB / 0.5635 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.255e-06/0.844, allocations: 20.36 kB / 0.5635 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00924/0.8533, allocations: 6.591 MB / 0.5699 GB, free: 120.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002025/0.8553, allocations: 0.7697 MB / 0.5707 GB, free: 119.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001002/0.8563, allocations: 60.81 kB / 0.5708 GB, free: 119.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002436/0.8588, allocations: 171.5 kB / 0.5709 GB, free: 119.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004552/0.8593, allocations: 206.1 kB / 0.5711 GB, free: 119.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002037/0.8595, allocations: 86.31 kB / 0.5712 GB, free: 119.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00401/0.8635, allocations: 2.301 MB / 0.5734 GB, free: 119 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.8635, allocations: 3.812 kB / 0.5735 GB, free: 119 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004098/0.8676, allocations: 1.088 MB / 0.5745 GB, free: 118.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.stray.Phi.re,smeeM.stator.stray.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * 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 (238): * Single equations (assignments): 228 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(2,13,100.0%), (1,5,100.0%), (1,8,100.0%), (3,12,100.0%), (1,3,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.0006967/0.8683, allocations: 285 kB / 0.5748 GB, free: 118.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006844/0.8752, allocations: 4.699 MB / 0.5794 GB, free: 115.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/0.8752, allocations: 4 kB / 0.5794 GB, free: 115.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004359/0.8796, allocations: 2.836 MB / 0.5821 GB, free: 113 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005678/0.8853, allocations: 0.9112 MB / 0.583 GB, free: 112.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01785/0.9032, allocations: 10.42 MB / 0.5932 GB, free: 101.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004012/0.9072, allocations: 3.495 MB / 0.5966 GB, free: 98.13 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003079/0.9103, allocations: 0.8601 MB / 0.5975 GB, free: 97.26 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001032/0.9114, allocations: 267.4 kB / 0.5977 GB, free: 97 MB / 446.1 MB Notification: Performance of SimCode: time 1.072e-06/0.9114, allocations: 0 / 0.5977 GB, free: 97 MB / 446.1 MB Notification: Performance of Templates: time 0.07388/0.9853, allocations: 50.34 MB / 0.6469 GB, free: 47.29 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches