Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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.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_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001121/0.001121, allocations: 116.9 kB / 18.4 MB, free: 4.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001085/0.001085, allocations: 204.5 kB / 19.35 MB, free: 3.805 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.306/1.306, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 59.59 kB / 308.4 MB, free: 15.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08785/0.08901, allocations: 50.53 MB / 358.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.1798/0.2688, allocations: 24.75 MB / 383.7 MB, free: 8.086 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01268/0.2815, allocations: 7.398 MB / 391.1 MB, free: 3.219 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0045/0.2861, allocations: 147.2 kB / 391.2 MB, free: 3.188 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004714/0.2908, allocations: 1.601 MB / 392.8 MB, free: 2.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007383/0.2982, allocations: 2.265 MB / 395.1 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004212/0.3025, allocations: 1.492 MB / 396.6 MB, free: 15.89 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01171/0.3142, allocations: 7.259 MB / 403.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008452/0.3227, allocations: 5.563 MB / 409.4 MB, free: 8.824 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005777/0.3285, allocations: 3.209 MB / 412.6 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006484/0.335, allocations: 3.954 MB / 416.6 MB, free: 2.047 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003398/0.3384, allocations: 0.8711 MB / 417.4 MB, free: 1.176 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004301/0.3427, allocations: 1.292 MB / 418.7 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002298/0.3451, allocations: 2.142 MB / 420.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005531/0.3506, allocations: 3.788 MB / 424.6 MB, free: 9.926 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01233/0.363, allocations: 11.51 MB / 436.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.363, allocations: 7.938 kB / 436.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.363, allocations: 0 / 436.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002594/0.3633, allocations: 0 / 436.2 MB, free: 14.37 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: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.0205/0.3838, allocations: 7.454 MB / 443.6 MB, free: 6.836 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.3839, allocations: 12.03 kB / 443.6 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006884/0.3907, allocations: 1.258 MB / 444.9 MB, free: 5.559 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009544/0.4003, allocations: 4.161 MB / 449 MB, free: 1.324 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003478/0.4007, allocations: 427.8 kB / 449.5 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001405/0.4021, allocations: 0.5588 MB / 450 MB, free: 356 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01543/0.4176, allocations: 7.288 MB / 457.3 MB, free: 8.996 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001437/0.4177, allocations: 7.906 kB / 457.3 MB, free: 8.988 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005738/0.4183, allocations: 232 kB / 457.5 MB, free: 8.762 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002635/0.4186, allocations: 259.3 kB / 457.8 MB, free: 8.508 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01232/0.4309, allocations: 6.131 MB / 463.9 MB, free: 2.371 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04667/0.4776, allocations: 23.49 MB / 487.4 MB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009471/0.4871, allocations: 8.975 MB / 496.4 MB, free: 272 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004665/0.4919, allocations: 2.48 MB / 498.9 MB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01502/0.5069, allocations: 7.518 MB / 0.4945 GB, free: 5.895 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.148e-05/0.507, allocations: 68.55 kB / 0.4946 GB, free: 5.82 MB / 414.1 MB Notification: Performance of pre-optimization done (n=238): time 4.819e-06/0.507, allocations: 0 / 0.4946 GB, free: 5.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=282): time 0.03417/0.5412, allocations: 13.83 MB / 0.5081 GB, free: 7.781 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.277e-05/0.5413, allocations: 81.59 kB / 0.5082 GB, free: 7.688 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005083/0.5464, allocations: 3.453 MB / 0.5115 GB, free: 4.25 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004171/0.5468, allocations: 73.7 kB / 0.5116 GB, free: 4.172 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001855/0.5487, allocations: 2.694 MB / 0.5142 GB, free: 1.445 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009727/0.5497, allocations: 0.9589 MB / 0.5152 GB, free: 484 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009664/0.5506, allocations: 0.6372 MB / 0.5158 GB, free: 15.83 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.512e-05/0.5507, allocations: 301.1 kB / 0.5161 GB, free: 15.53 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00256/0.5533, allocations: 1.545 MB / 0.5176 GB, free: 13.98 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003447/0.5567, allocations: 2.752 MB / 0.5203 GB, free: 10.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006271/0.563, allocations: 4.606 MB / 0.5248 GB, free: 5.516 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.39e-05/0.5631, allocations: 12 kB / 0.5248 GB, free: 5.504 MB / 446.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.1773/0.7404, allocations: 5.484 MB / 0.5301 GB, free: 135.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.647e-05/0.7405, allocations: 21.73 kB / 0.5302 GB, free: 135.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.452e-05/0.7406, allocations: 42.83 kB / 0.5302 GB, free: 135.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001765/0.7424, allocations: 0.6807 MB / 0.5309 GB, free: 135.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003516/0.7459, allocations: 0.8524 MB / 0.5317 GB, free: 135.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009951/0.7559, allocations: 10.48 MB / 0.5419 GB, free: 128.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003316/0.7592, allocations: 219.6 kB / 0.5422 GB, free: 128.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004304/0.7597, allocations: 169.6 kB / 0.5423 GB, free: 128.9 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 (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.00281/0.7625, allocations: 1.628 MB / 0.5439 GB, free: 128 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008666/0.7634, allocations: 394.9 kB / 0.5443 GB, free: 128 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007614/0.771, allocations: 4.526 MB / 0.5487 GB, free: 126 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.413e-05/0.7711, allocations: 31.86 kB / 0.5487 GB, free: 126 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.734e-05/0.7711, allocations: 7.906 kB / 0.5487 GB, free: 126 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-05/0.7711, allocations: 13.31 kB / 0.5488 GB, free: 126 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01556/0.7867, allocations: 9.931 MB / 0.5585 GB, free: 121.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-05/0.7868, allocations: 3.938 kB / 0.5585 GB, free: 121.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00209/0.7888, allocations: 499.5 kB / 0.5589 GB, free: 121.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001731/0.7906, allocations: 0.7518 MB / 0.5597 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002228/0.7908, allocations: 74.42 kB / 0.5597 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01034/0.8012, allocations: 14.27 MB / 0.5737 GB, free: 110 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.8012, allocations: 7.688 kB / 0.5737 GB, free: 110 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009044/0.8103, allocations: 6.615 MB / 0.5801 GB, free: 106.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002007/0.8123, allocations: 0.7697 MB / 0.5809 GB, free: 106.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005984/0.8129, allocations: 62 kB / 0.581 GB, free: 106.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001876/0.8148, allocations: 164.6 kB / 0.5811 GB, free: 106.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004117/0.8152, allocations: 207.2 kB / 0.5813 GB, free: 106.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001778/0.8154, allocations: 86.91 kB / 0.5814 GB, free: 106.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002992/0.8184, allocations: 2.321 MB / 0.5837 GB, free: 104.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.8184, allocations: 4 kB / 0.5837 GB, free: 104.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00373/0.8222, allocations: 1.097 MB / 0.5847 GB, free: 103.6 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 (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.0005975/0.8228, allocations: 291.6 kB / 0.585 GB, free: 103.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006302/0.8291, allocations: 4.71 MB / 0.5896 GB, free: 98.48 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/0.8291, allocations: 4 kB / 0.5896 GB, free: 98.47 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003794/0.8329, allocations: 2.85 MB / 0.5924 GB, free: 95.55 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003888/0.8368, allocations: 0.93 MB / 0.5933 GB, free: 94.64 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01422/0.8511, allocations: 10.44 MB / 0.6035 GB, free: 84.14 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002553/0.8537, allocations: 3.523 MB / 0.6069 GB, free: 80.58 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002693/0.8564, allocations: 0.8487 MB / 0.6078 GB, free: 79.73 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007031/0.8571, allocations: 263.4 kB / 0.608 GB, free: 79.47 MB / 446.1 MB Notification: Performance of SimCode: time 6.32e-07/0.8571, allocations: 4 kB / 0.608 GB, free: 79.46 MB / 446.1 MB Notification: Performance of Templates: time 0.0731/0.9302, allocations: 50.64 MB / 0.6575 GB, free: 29.37 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches