Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.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.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 104.4 kB / 18.34 MB, free: 4.852 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.001243/0.001243, allocations: 187 kB / 19.28 MB, free: 3.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.282/1.282, allocations: 205.1 MB / 225.1 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 51.92 kB / 282.1 MB, free: 2.461 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07941/0.08061, allocations: 46.63 MB / 328.7 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02407/0.1047, allocations: 24.05 MB / 352.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01351/0.1182, allocations: 7.106 MB / 359.9 MB, free: 4.465 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004963/0.1233, allocations: 135.4 kB / 360 MB, free: 4.332 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005736/0.1291, allocations: 1.568 MB / 361.6 MB, free: 2.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008194/0.1373, allocations: 2.283 MB / 363.9 MB, free: 464 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004188/0.1415, allocations: 1.458 MB / 365.3 MB, free: 14.99 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009303/0.1508, allocations: 7.231 MB / 372.5 MB, free: 7.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00667/0.1575, allocations: 5.474 MB / 378 MB, free: 2.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1599/0.3174, allocations: 3.176 MB / 381.2 MB, free: 17.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006526/0.324, allocations: 3.825 MB / 385 MB, free: 17.32 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003449/0.3275, allocations: 0.8737 MB / 385.9 MB, free: 17.32 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005094/0.3326, allocations: 1.301 MB / 387.2 MB, free: 17.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004049/0.3367, allocations: 2.124 MB / 389.3 MB, free: 17.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008797/0.3455, allocations: 3.781 MB / 393.1 MB, free: 16.14 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01199/0.3575, allocations: 11.46 MB / 404.6 MB, free: 12.58 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.3575, allocations: 0 / 404.6 MB, free: 12.58 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3575, allocations: 1.406 kB / 404.6 MB, free: 12.58 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003143/0.3579, allocations: 0 / 404.6 MB, free: 12.58 MB / 318.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.01934/0.3772, allocations: 7.422 MB / 412 MB, free: 7.746 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.3773, allocations: 9.531 kB / 412 MB, free: 7.746 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006093/0.3834, allocations: 1.216 MB / 413.2 MB, free: 7.168 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008213/0.3916, allocations: 3.913 MB / 417.1 MB, free: 4.598 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002351/0.3919, allocations: 425.1 kB / 417.5 MB, free: 4.41 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001154/0.393, allocations: 0.5606 MB / 418.1 MB, free: 4.219 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01298/0.406, allocations: 7.284 MB / 425.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001509/0.4062, allocations: 11.91 kB / 425.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006523/0.4069, allocations: 231.9 kB / 425.6 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002908/0.4072, allocations: 259.3 kB / 425.9 MB, free: 13.92 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01341/0.4206, allocations: 6.105 MB / 432 MB, free: 7.824 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04058/0.4612, allocations: 23.4 MB / 455.4 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008055/0.4693, allocations: 8.719 MB / 464.1 MB, free: 6.664 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003649/0.473, allocations: 2.377 MB / 466.5 MB, free: 4.293 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01259/0.4856, allocations: 6.916 MB / 473.4 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.21e-05/0.4856, allocations: 60.56 kB / 473.5 MB, free: 13.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=238): time 4.077e-06/0.4857, allocations: 0 / 473.5 MB, free: 13.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=282): time 0.03137/0.517, allocations: 13.73 MB / 487.2 MB, free: 15.31 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.909e-05/0.5171, allocations: 81.16 kB / 487.3 MB, free: 15.22 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004988/0.5221, allocations: 3.424 MB / 490.7 MB, free: 11.81 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002945/0.5224, allocations: 77.7 kB / 490.8 MB, free: 11.73 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001784/0.5242, allocations: 2.682 MB / 493.4 MB, free: 9.031 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000785/0.525, allocations: 0.9654 MB / 494.4 MB, free: 8.074 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009608/0.526, allocations: 0.6333 MB / 495 MB, free: 7.434 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.177e-05/0.5261, allocations: 305.1 kB / 495.3 MB, free: 7.133 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002519/0.5286, allocations: 1.553 MB / 496.9 MB, free: 5.578 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00326/0.5319, allocations: 2.752 MB / 499.6 MB, free: 2.309 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005914/0.5378, allocations: 4.605 MB / 0.4924 GB, free: 13.29 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-05/0.5378, allocations: 8 kB / 0.4924 GB, free: 13.28 MB / 414.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.009092/0.5469, allocations: 5.474 MB / 0.4978 GB, free: 7.953 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.144e-05/0.547, allocations: 24 kB / 0.4978 GB, free: 7.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-05/0.5471, allocations: 40.64 kB / 0.4978 GB, free: 7.891 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001575/0.5486, allocations: 0.6682 MB / 0.4985 GB, free: 7.207 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003196/0.5519, allocations: 0.8627 MB / 0.4993 GB, free: 6.398 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01019/0.5621, allocations: 10.35 MB / 0.5094 GB, free: 11.55 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003541/0.5656, allocations: 215.5 kB / 0.5096 GB, free: 11.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004705/0.5661, allocations: 172 kB / 0.5098 GB, free: 11.18 MB / 430.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.00309/0.5692, allocations: 1.634 MB / 0.5114 GB, free: 9.594 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009445/0.5702, allocations: 391.3 kB / 0.5118 GB, free: 9.207 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007577/0.5777, allocations: 4.505 MB / 0.5162 GB, free: 4.602 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.527e-05/0.5778, allocations: 32 kB / 0.5162 GB, free: 4.57 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.391e-05/0.5778, allocations: 7.984 kB / 0.5162 GB, free: 4.562 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.703e-05/0.5779, allocations: 19.94 kB / 0.5162 GB, free: 4.543 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01832/0.5962, allocations: 9.901 MB / 0.5259 GB, free: 10.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.375e-05/0.5962, allocations: 4 kB / 0.5259 GB, free: 10.53 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002205/0.5985, allocations: 0.4975 MB / 0.5264 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002103/0.6006, allocations: 0.7227 MB / 0.5271 GB, free: 9.316 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002569/0.6008, allocations: 79.81 kB / 0.5272 GB, free: 9.242 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1651/0.7659, allocations: 14.11 MB / 0.541 GB, free: 151.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.608e-06/0.766, allocations: 9.938 kB / 0.541 GB, free: 151.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01025/0.7762, allocations: 6.589 MB / 0.5474 GB, free: 149.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002265/0.7785, allocations: 0.7704 MB / 0.5482 GB, free: 149.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006674/0.7792, allocations: 63.02 kB / 0.5482 GB, free: 149.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001973/0.7812, allocations: 162.9 kB / 0.5484 GB, free: 149.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005066/0.7817, allocations: 215.7 kB / 0.5486 GB, free: 149.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002032/0.7819, allocations: 86.25 kB / 0.5487 GB, free: 149.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003841/0.7857, allocations: 2.305 MB / 0.5509 GB, free: 148.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.7858, allocations: 0 / 0.5509 GB, free: 148.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004778/0.7905, allocations: 1.095 MB / 0.552 GB, free: 148.5 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.strayReluctance.Phi.re,smeeM.stator.strayReluctance.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.0008095/0.7914, allocations: 278 kB / 0.5522 GB, free: 148.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007133/0.7985, allocations: 4.685 MB / 0.5568 GB, free: 146.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.276e-06/0.7986, allocations: 3.844 kB / 0.5568 GB, free: 146.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004034/0.8026, allocations: 2.834 MB / 0.5596 GB, free: 144.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004102/0.8067, allocations: 0.9147 MB / 0.5605 GB, free: 144.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01773/0.8245, allocations: 10.42 MB / 0.5707 GB, free: 139.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00332/0.8279, allocations: 3.504 MB / 0.5741 GB, free: 136.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002995/0.8309, allocations: 0.8577 MB / 0.5749 GB, free: 135.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008008/0.8317, allocations: 262.3 kB / 0.5752 GB, free: 135.5 MB / 446.1 MB Notification: Performance of SimCode: time 2.825e-06/0.8317, allocations: 0 / 0.5752 GB, free: 135.5 MB / 446.1 MB Notification: Performance of Templates: time 0.07452/0.9063, allocations: 50.44 MB / 0.6244 GB, free: 87.18 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches