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.001197/0.001198, allocations: 90.12 kB / 16.31 MB, free: 6.461 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.001578/0.001579, allocations: 183.9 kB / 17.21 MB, free: 6.336 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.434/1.434, allocations: 223.3 MB / 241.2 MB, free: 5.402 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002497/0.0002497, allocations: 4.969 kB / 300.8 MB, free: 6.371 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09239/0.09265, allocations: 50.43 MB / 351.3 MB, free: 11.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.02176/0.1145, allocations: 21.3 MB / 372.6 MB, free: 6.395 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01298/0.1275, allocations: 6.698 MB / 379.3 MB, free: 15.67 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003549/0.1311, allocations: 131.5 kB / 379.4 MB, free: 15.54 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003348/0.1345, allocations: 1.181 MB / 380.6 MB, free: 14.36 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005919/0.1404, allocations: 1.895 MB / 382.5 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002838/0.1433, allocations: 0.9613 MB / 383.4 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008593/0.1519, allocations: 7.169 MB / 390.6 MB, free: 4.301 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004983/0.1569, allocations: 3.734 MB / 394.3 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00337/0.1603, allocations: 2.276 MB / 396.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004158/0.1644, allocations: 3.019 MB / 399.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007106/0.1652, allocations: 368 kB / 400 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00181/0.167, allocations: 0.7182 MB / 400.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001362/0.1683, allocations: 1.491 MB / 402.2 MB, free: 8.625 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001487/0.1698, allocations: 1.28 MB / 403.5 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008782/0.1786, allocations: 9.267 MB / 412.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1787, allocations: 4 kB / 412.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.1787, allocations: 0 / 412.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002575/0.1789, allocations: 0 / 412.7 MB, free: 14.04 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.01479/0.1937, allocations: 6.312 MB / 419 MB, free: 7.645 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.1938, allocations: 8.031 kB / 419.1 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00623/0.2, allocations: 1.237 MB / 420.3 MB, free: 6.391 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007546/0.2076, allocations: 3.733 MB / 424 MB, free: 2.586 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003743/0.208, allocations: 439.4 kB / 424.5 MB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009597/0.209, allocations: 0.5623 MB / 425 MB, free: 1.594 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.189/0.398, allocations: 7.26 MB / 432.3 MB, free: 30.08 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001345/0.3981, allocations: 14.34 kB / 432.3 MB, free: 30.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005509/0.3987, allocations: 228.8 kB / 432.5 MB, free: 30.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004656/0.3992, allocations: 263.1 kB / 432.8 MB, free: 30.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01214/0.4113, allocations: 6.158 MB / 438.9 MB, free: 30.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03144/0.4428, allocations: 23.94 MB / 462.9 MB, free: 22.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006538/0.4494, allocations: 8.746 MB / 471.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003179/0.4526, allocations: 2.408 MB / 474 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01041/0.463, allocations: 7.031 MB / 481.1 MB, free: 4.188 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.463e-05/0.4631, allocations: 60.56 kB / 481.1 MB, free: 4.121 MB / 350.1 MB Notification: Performance of pre-optimization done (n=238): time 6.302e-06/0.4631, allocations: 0 / 481.1 MB, free: 4.121 MB / 350.1 MB Notification: Performance of matching and sorting (n=282): time 0.03069/0.4938, allocations: 14.52 MB / 495.6 MB, free: 5.457 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.933e-05/0.4939, allocations: 77.59 kB / 495.7 MB, free: 5.367 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004911/0.4988, allocations: 3.457 MB / 499.2 MB, free: 1.926 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002268/0.4991, allocations: 73.7 kB / 499.2 MB, free: 1.848 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001864/0.501, allocations: 2.684 MB / 0.4902 GB, free: 15.14 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007954/0.5018, allocations: 0.9616 MB / 0.4911 GB, free: 14.19 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001844/0.502, allocations: 72 kB / 0.4912 GB, free: 14.12 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002302/0.5022, allocations: 449.8 kB / 0.4916 GB, free: 13.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002618/0.5048, allocations: 1.581 MB / 0.4931 GB, free: 12.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003366/0.5082, allocations: 2.785 MB / 0.4959 GB, free: 8.797 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003158/0.5114, allocations: 2.043 MB / 0.4979 GB, free: 6.766 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.745e-05/0.5114, allocations: 12 kB / 0.4979 GB, free: 6.754 MB / 382.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.009467/0.5209, allocations: 5.557 MB / 0.5033 GB, free: 1.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.68e-05/0.5209, allocations: 23.94 kB / 0.5033 GB, free: 1.316 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.263e-05/0.521, allocations: 36 kB / 0.5033 GB, free: 1.281 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001622/0.5226, allocations: 0.6911 MB / 0.504 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003174/0.5258, allocations: 0.8719 MB / 0.5049 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01018/0.536, allocations: 9.602 MB / 0.5143 GB, free: 5.691 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003133/0.5392, allocations: 231.6 kB / 0.5145 GB, free: 5.465 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003608/0.5395, allocations: 172 kB / 0.5146 GB, free: 5.297 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 174 * 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 (429): * Single equations (assignments): 419 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 12,(1,100.0%) 3,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003041/0.5426, allocations: 1.629 MB / 0.5162 GB, free: 3.719 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008832/0.5435, allocations: 383.3 kB / 0.5166 GB, free: 3.34 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008039/0.5515, allocations: 4.602 MB / 0.5211 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-05/0.5516, allocations: 39.94 kB / 0.5211 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.357e-05/0.5516, allocations: 8 kB / 0.5211 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-05/0.5517, allocations: 11.95 kB / 0.5211 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01645/0.5681, allocations: 10.06 MB / 0.531 GB, free: 4.391 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.339e-05/0.5682, allocations: 4 kB / 0.531 GB, free: 4.387 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002118/0.5703, allocations: 0.5094 MB / 0.5315 GB, free: 3.898 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001842/0.5721, allocations: 0.7524 MB / 0.5322 GB, free: 3.133 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001777/0.5723, allocations: 71.97 kB / 0.5323 GB, free: 3.062 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01281/0.5851, allocations: 13.04 MB / 0.545 GB, free: 5.297 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.5852, allocations: 7.469 kB / 0.545 GB, free: 5.293 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01095/0.5961, allocations: 6.746 MB / 0.5516 GB, free: 14.33 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001879/0.598, allocations: 0.7852 MB / 0.5524 GB, free: 13.52 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005431/0.5986, allocations: 63.98 kB / 0.5524 GB, free: 13.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00187/0.6005, allocations: 187.8 kB / 0.5526 GB, free: 13.27 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004492/0.6009, allocations: 201.3 kB / 0.5528 GB, free: 13.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001751/0.6011, allocations: 91.48 kB / 0.5529 GB, free: 12.99 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00357/0.6047, allocations: 2.329 MB / 0.5552 GB, free: 10.68 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.6047, allocations: 0 / 0.5552 GB, free: 10.68 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003742/0.6085, allocations: 1.112 MB / 0.5562 GB, free: 9.578 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 (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(3,100.0%) 12,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005315/0.609, allocations: 247.1 kB / 0.5565 GB, free: 9.359 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007468/0.6165, allocations: 4.765 MB / 0.5611 GB, free: 4.609 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.6165, allocations: 0.9375 kB / 0.5611 GB, free: 4.609 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004397/0.6209, allocations: 2.889 MB / 0.564 GB, free: 1.695 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004134/0.6251, allocations: 0.8791 MB / 0.5648 GB, free: 0.8242 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01949/0.6446, allocations: 12.54 MB / 0.5771 GB, free: 4.199 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003502/0.6481, allocations: 3.491 MB / 0.5805 GB, free: 0.6719 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003308/0.6514, allocations: 0.86 MB / 0.5813 GB, free: 15.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008021/0.6522, allocations: 259.4 kB / 0.5816 GB, free: 15.55 MB / 478.1 MB Notification: Performance of SimCode: time 1.082e-06/0.6523, allocations: 0 / 0.5816 GB, free: 15.55 MB / 478.1 MB Notification: Performance of Templates: time 0.2834/0.9356, allocations: 50.49 MB / 0.6309 GB, free: 153.5 MB / 478.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 -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/jenkins/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/jenkins/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