Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001761/0.001761, allocations: 116.1 kB / 18.46 MB, free: 4.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002076/0.002076, allocations: 216.3 kB / 21.42 MB, free: 1.652 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.506/1.506, allocations: 230.6 MB / 254.8 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,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.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,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.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001537/0.001537, allocations: 51.94 kB / 374.2 MB, free: 9.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1151, allocations: 53.34 MB / 427.5 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.2288/0.3438, allocations: 24.84 MB / 452.4 MB, free: 10.02 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01421/0.358, allocations: 7.41 MB / 459.8 MB, free: 9.07 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006073/0.3641, allocations: 177.2 kB / 459.9 MB, free: 9.008 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006221/0.3703, allocations: 1.647 MB / 461.6 MB, free: 8.219 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009524/0.3798, allocations: 2.356 MB / 464 MB, free: 7.07 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004972/0.3848, allocations: 1.499 MB / 465.5 MB, free: 6.258 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01204/0.3969, allocations: 7.255 MB / 472.7 MB, free: 2.656 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006468/0.4033, allocations: 3.865 MB / 476.6 MB, free: 0.957 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008366/0.4117, allocations: 3.431 MB / 480 MB, free: 0 / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01005/0.4217, allocations: 4.027 MB / 484 MB, free: 13.94 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003484/0.4252, allocations: 0.8734 MB / 484.9 MB, free: 13.94 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006328/0.4316, allocations: 1.323 MB / 486.2 MB, free: 13.71 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00421/0.4358, allocations: 2.145 MB / 488.4 MB, free: 12.04 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01017/0.4459, allocations: 3.789 MB / 492.2 MB, free: 9.305 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01994/0.4659, allocations: 11.55 MB / 0.4919 GB, free: 15.71 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.4659, allocations: 3.938 kB / 0.4919 GB, free: 15.71 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4659, allocations: 0 / 0.4919 GB, free: 15.71 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004288/0.4663, allocations: 0 / 0.4919 GB, free: 15.71 MB / 398.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.02475/0.4911, allocations: 7.626 MB / 0.4994 GB, free: 7.992 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.274e-05/0.4911, allocations: 12.03 kB / 0.4994 GB, free: 7.98 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007631/0.4988, allocations: 1.265 MB / 0.5006 GB, free: 6.711 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01033/0.5091, allocations: 4.199 MB / 0.5047 GB, free: 2.441 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004713/0.5096, allocations: 427.8 kB / 0.5051 GB, free: 2.023 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00206/0.5116, allocations: 0.5511 MB / 0.5056 GB, free: 1.473 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01857/0.5302, allocations: 7.297 MB / 0.5128 GB, free: 10.12 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001739/0.5304, allocations: 11.94 kB / 0.5128 GB, free: 10.11 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009015/0.5313, allocations: 232 kB / 0.513 GB, free: 9.883 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003179/0.5316, allocations: 259.3 kB / 0.5133 GB, free: 9.629 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01632/0.5479, allocations: 6.134 MB / 0.5192 GB, free: 3.492 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05443/0.6023, allocations: 23.58 MB / 0.5423 GB, free: 11.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01097/0.6133, allocations: 8.749 MB / 0.5508 GB, free: 1.562 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005133/0.6184, allocations: 2.296 MB / 0.5531 GB, free: 15.25 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01633/0.6348, allocations: 7.551 MB / 0.5604 GB, free: 7.344 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.103e-05/0.6348, allocations: 60.56 kB / 0.5605 GB, free: 7.273 MB / 462.1 MB Notification: Performance of pre-optimization done (n=238): time 5.721e-06/0.6348, allocations: 0 / 0.5605 GB, free: 7.273 MB / 462.1 MB Notification: Performance of matching and sorting (n=282): time 0.03982/0.6747, allocations: 13.91 MB / 0.5741 GB, free: 9.156 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.023e-05/0.6747, allocations: 77.59 kB / 0.5741 GB, free: 9.066 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00737/0.6821, allocations: 3.454 MB / 0.5775 GB, free: 5.629 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005225/0.6826, allocations: 77.69 kB / 0.5776 GB, free: 5.547 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002487/0.6851, allocations: 2.768 MB / 0.5803 GB, free: 2.754 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001368/0.6865, allocations: 1.003 MB / 0.5813 GB, free: 1.742 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0016/0.6881, allocations: 0.6531 MB / 0.5819 GB, free: 1.082 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.6882, allocations: 301.1 kB / 0.5822 GB, free: 0.7852 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00313/0.6913, allocations: 1.549 MB / 0.5837 GB, free: 15.23 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004097/0.6954, allocations: 2.759 MB / 0.5864 GB, free: 11.94 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007595/0.703, allocations: 4.595 MB / 0.5909 GB, free: 6.773 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-05/0.7031, allocations: 16 kB / 0.5909 GB, free: 6.758 MB / 494.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.01144/0.7145, allocations: 5.501 MB / 0.5963 GB, free: 1.156 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.298e-05/0.7145, allocations: 20.62 kB / 0.5963 GB, free: 1.137 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-05/0.7146, allocations: 40 kB / 0.5963 GB, free: 1.098 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001815/0.7164, allocations: 0.6946 MB / 0.597 GB, free: 396 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003382/0.7198, allocations: 0.8541 MB / 0.5979 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01206/0.7319, allocations: 10.49 MB / 0.6081 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003761/0.7356, allocations: 231.8 kB / 0.6083 GB, free: 4.273 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006721/0.7363, allocations: 168 kB / 0.6085 GB, free: 4.109 MB / 0.4981 GB 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 (427): * Single equations (assignments): 417 * 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,6,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.003681/0.74, allocations: 1.625 MB / 0.6101 GB, free: 2.473 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001173/0.7412, allocations: 413.4 kB / 0.6105 GB, free: 2.066 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008683/0.7498, allocations: 4.511 MB / 0.6149 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-05/0.7499, allocations: 28 kB / 0.6149 GB, free: 13.4 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.769e-05/0.7499, allocations: 12 kB / 0.6149 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.824e-05/0.7499, allocations: 11.95 kB / 0.6149 GB, free: 13.38 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01993/0.7699, allocations: 9.923 MB / 0.6246 GB, free: 3.215 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.676e-05/0.7699, allocations: 8 kB / 0.6246 GB, free: 3.207 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002272/0.7722, allocations: 499.3 kB / 0.6251 GB, free: 2.719 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002074/0.7742, allocations: 0.7448 MB / 0.6258 GB, free: 1.957 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003049/0.7745, allocations: 71.97 kB / 0.6259 GB, free: 1.887 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01564/0.7902, allocations: 14.28 MB / 0.6398 GB, free: 2.781 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.055e-06/0.7902, allocations: 7.984 kB / 0.6398 GB, free: 2.773 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2506/1.041, allocations: 6.614 MB / 0.6463 GB, free: 167.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002469/1.043, allocations: 0.7962 MB / 0.6471 GB, free: 167.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001295/1.045, allocations: 62.05 kB / 0.6471 GB, free: 167.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00287/1.047, allocations: 165.7 kB / 0.6473 GB, free: 167.7 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006883/1.048, allocations: 204.7 kB / 0.6475 GB, free: 167.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002335/1.048, allocations: 87.84 kB / 0.6476 GB, free: 167.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004744/1.053, allocations: 2.328 MB / 0.6498 GB, free: 167.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.21e-07/1.053, allocations: 0 / 0.6498 GB, free: 167.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005814/1.059, allocations: 1.099 MB / 0.6509 GB, free: 167.1 MB / 0.5294 GB 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 (235): * Single equations (assignments): 225 * 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,6,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.0009829/1.06, allocations: 289.2 kB / 0.6512 GB, free: 167 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008527/1.068, allocations: 4.532 MB / 0.6556 GB, free: 165 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.048e-05/1.068, allocations: 5.5 kB / 0.6556 GB, free: 165 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004979/1.073, allocations: 2.713 MB / 0.6583 GB, free: 163.6 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005476/1.079, allocations: 0.9246 MB / 0.6592 GB, free: 163.3 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01979/1.099, allocations: 10.62 MB / 0.6695 GB, free: 158.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003977/1.103, allocations: 3.431 MB / 0.6729 GB, free: 157 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001386/1.104, allocations: 304.2 kB / 0.6732 GB, free: 157 MB / 0.5294 GB Notification: Performance of SimCode: time 1.693e-06/1.104, allocations: 0 / 0.6732 GB, free: 157 MB / 0.5294 GB Notification: Performance of Templates: time 0.4362/1.54, allocations: 241.7 MB / 0.9092 GB, free: 141.1 MB / 0.545 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & ./Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 21.893184439017205]