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.00136/0.00136, allocations: 110.7 kB / 18.35 MB, free: 4.84 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.001463/0.001463, allocations: 184.2 kB / 19.29 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.433/1.433, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001251/0.001251, allocations: 55.92 kB / 329.2 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.104, allocations: 46.61 MB / 375.8 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.245/0.3491, allocations: 24.05 MB / 399.8 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01786/0.367, allocations: 7.12 MB / 407 MB, free: 8.883 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007287/0.3744, allocations: 130.6 kB / 407.1 MB, free: 8.852 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006708/0.3811, allocations: 1.57 MB / 408.7 MB, free: 8.004 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0108/0.392, allocations: 2.276 MB / 410.9 MB, free: 6.492 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005602/0.3976, allocations: 1.464 MB / 412.4 MB, free: 5.449 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01299/0.4106, allocations: 7.192 MB / 419.6 MB, free: 1.051 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009042/0.4197, allocations: 5.482 MB / 425.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007238/0.427, allocations: 3.173 MB / 428.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00792/0.4349, allocations: 3.833 MB / 432.1 MB, free: 7.215 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003345/0.4383, allocations: 0.8711 MB / 432.9 MB, free: 6.344 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006653/0.445, allocations: 1.304 MB / 434.3 MB, free: 5.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003889/0.4489, allocations: 2.127 MB / 436.4 MB, free: 2.906 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008037/0.457, allocations: 3.773 MB / 440.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01468/0.4717, allocations: 11.45 MB / 451.6 MB, free: 3.633 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.4717, allocations: 0 / 451.6 MB, free: 3.633 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.4717, allocations: 0 / 451.6 MB, free: 3.633 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003862/0.4721, allocations: 3.938 kB / 451.6 MB, free: 3.629 MB / 366.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.02203/0.4942, allocations: 7.424 MB / 459 MB, free: 12.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.4942, allocations: 8.031 kB / 459 MB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006389/0.5006, allocations: 1.219 MB / 460.3 MB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00934/0.51, allocations: 3.923 MB / 464.2 MB, free: 6.891 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004674/0.5105, allocations: 431.8 kB / 464.6 MB, free: 6.469 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001968/0.5125, allocations: 0.5549 MB / 465.2 MB, free: 5.914 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01611/0.5286, allocations: 7.272 MB / 472.4 MB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000142/0.5288, allocations: 11.92 kB / 472.4 MB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006174/0.5294, allocations: 232 kB / 472.7 MB, free: 14.35 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002674/0.5297, allocations: 259.3 kB / 472.9 MB, free: 14.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01231/0.542, allocations: 6.107 MB / 479 MB, free: 7.98 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04533/0.5874, allocations: 23.41 MB / 0.4907 GB, free: 15.93 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009531/0.597, allocations: 8.725 MB / 0.4992 GB, free: 6.266 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00456/0.6015, allocations: 2.39 MB / 0.5015 GB, free: 3.875 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01488/0.6164, allocations: 6.918 MB / 0.5083 GB, free: 12.73 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.448e-05/0.6166, allocations: 64.56 kB / 0.5083 GB, free: 12.66 MB / 446.1 MB Notification: Performance of pre-optimization done (n=238): time 5.18e-06/0.6166, allocations: 0 / 0.5083 GB, free: 12.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=282): time 0.0373/0.6539, allocations: 13.73 MB / 0.5217 GB, free: 14.7 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.876e-05/0.654, allocations: 81.59 kB / 0.5218 GB, free: 14.61 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007655/0.6617, allocations: 3.432 MB / 0.5252 GB, free: 11.19 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005604/0.6622, allocations: 73.7 kB / 0.5252 GB, free: 11.11 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00238/0.6646, allocations: 2.666 MB / 0.5278 GB, free: 8.418 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001489/0.6661, allocations: 0.9705 MB / 0.5288 GB, free: 7.434 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001844/0.668, allocations: 0.641 MB / 0.5294 GB, free: 6.785 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.992e-05/0.6681, allocations: 301.1 kB / 0.5297 GB, free: 6.488 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00276/0.6709, allocations: 1.545 MB / 0.5312 GB, free: 4.941 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00349/0.6744, allocations: 2.763 MB / 0.5339 GB, free: 1.645 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006615/0.681, allocations: 4.599 MB / 0.5384 GB, free: 12.47 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.134e-05/0.6811, allocations: 12 kB / 0.5384 GB, free: 12.46 MB / 478.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.01055/0.6916, allocations: 5.479 MB / 0.5438 GB, free: 6.879 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.676e-05/0.6917, allocations: 20 kB / 0.5438 GB, free: 6.859 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.249e-05/0.6918, allocations: 40 kB / 0.5438 GB, free: 6.82 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0017/0.6936, allocations: 0.6615 MB / 0.5445 GB, free: 6.141 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003475/0.697, allocations: 0.8657 MB / 0.5453 GB, free: 5.273 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.247/0.944, allocations: 10.34 MB / 0.5554 GB, free: 141.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004261/0.9483, allocations: 224.8 kB / 0.5556 GB, free: 141.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008172/0.9492, allocations: 167.3 kB / 0.5558 GB, free: 141.5 MB / 478.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.004271/0.9534, allocations: 1.624 MB / 0.5574 GB, free: 141.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001298/0.9547, allocations: 387.1 kB / 0.5577 GB, free: 141.1 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009231/0.964, allocations: 4.509 MB / 0.5621 GB, free: 139.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.01e-05/0.9641, allocations: 35.77 kB / 0.5622 GB, free: 139.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.572e-05/0.9641, allocations: 7.781 kB / 0.5622 GB, free: 139.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-05/0.9642, allocations: 13.59 kB / 0.5622 GB, free: 139.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02119/0.9854, allocations: 9.905 MB / 0.5719 GB, free: 134.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.662e-05/0.9854, allocations: 4.594 kB / 0.5719 GB, free: 134.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002273/0.9877, allocations: 0.5007 MB / 0.5724 GB, free: 134.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001941/0.9897, allocations: 0.7259 MB / 0.5731 GB, free: 134.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002441/0.9899, allocations: 73.89 kB / 0.5731 GB, free: 134.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01184/1.002, allocations: 14.1 MB / 0.5869 GB, free: 123.1 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.488e-06/1.002, allocations: 14.02 kB / 0.5869 GB, free: 123.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01092/1.013, allocations: 6.604 MB / 0.5934 GB, free: 120.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002203/1.015, allocations: 0.762 MB / 0.5941 GB, free: 119.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008524/1.016, allocations: 68.62 kB / 0.5942 GB, free: 119.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002296/1.018, allocations: 160 kB / 0.5943 GB, free: 119.8 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004964/1.019, allocations: 205.7 kB / 0.5945 GB, free: 119.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001781/1.019, allocations: 88.62 kB / 0.5946 GB, free: 119.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004021/1.023, allocations: 2.303 MB / 0.5969 GB, free: 118.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.1e-07/1.023, allocations: 0 / 0.5969 GB, free: 118.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005986/1.029, allocations: 1.1 MB / 0.5979 GB, free: 118.8 MB / 478.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.0008788/1.03, allocations: 284.3 kB / 0.5982 GB, free: 118.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007209/1.037, allocations: 4.683 MB / 0.6028 GB, free: 115.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.189e-05/1.037, allocations: 0 / 0.6028 GB, free: 115.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004086/1.041, allocations: 2.829 MB / 0.6056 GB, free: 112.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004714/1.046, allocations: 0.9151 MB / 0.6064 GB, free: 111.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01908/1.065, allocations: 10.44 MB / 0.6166 GB, free: 101.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002874/1.068, allocations: 3.424 MB / 0.62 GB, free: 97.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001363/1.069, allocations: 287.4 kB / 0.6203 GB, free: 97.43 MB / 478.1 MB Notification: Performance of SimCode: time 1.052e-06/1.069, allocations: 0 / 0.6203 GB, free: 97.43 MB / 478.1 MB Notification: Performance of Templates: time 0.4786/1.548, allocations: 239.3 MB / 0.8539 GB, free: 80.66 MB / 0.4981 GB 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 -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