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_MultiPhase.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: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001535/0.001535, allocations: 113.2 kB / 17.73 MB, free: 5.355 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.001894/0.001894, allocations: 184.1 kB / 18.66 MB, free: 4.434 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.376/1.376, allocations: 205.1 MB / 224.5 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.00132/0.00132, allocations: 55.92 kB / 328.1 MB, free: 3.773 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08866/0.08999, allocations: 46.62 MB / 374.7 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase): time 0.2147/0.3047, allocations: 29.42 MB / 404.1 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02162/0.3264, allocations: 8.134 MB / 412.2 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007919/0.3344, allocations: 172.2 kB / 412.4 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007989/0.3424, allocations: 1.976 MB / 414.4 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01275/0.3552, allocations: 2.738 MB / 417.1 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006557/0.3618, allocations: 1.777 MB / 418.9 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0166/0.3784, allocations: 10.22 MB / 429.1 MB, free: 9.059 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0172/0.3957, allocations: 9.461 MB / 438.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009583/0.4053, allocations: 4.786 MB / 443.4 MB, free: 11.05 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009998/0.4153, allocations: 5.534 MB / 448.9 MB, free: 5.492 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003957/0.4193, allocations: 1.363 MB / 450.3 MB, free: 4.129 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006083/0.4254, allocations: 1.726 MB / 452 MB, free: 2.402 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004253/0.4297, allocations: 3.023 MB / 455 MB, free: 15.37 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01114/0.4409, allocations: 5.66 MB / 460.7 MB, free: 9.688 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02492/0.4658, allocations: 17.57 MB / 478.2 MB, free: 8.059 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/0.4659, allocations: 0 / 478.2 MB, free: 8.059 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.4659, allocations: 4 kB / 478.2 MB, free: 8.055 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006026/0.4665, allocations: 0 / 478.2 MB, free: 8.055 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: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.0334/0.4999, allocations: 11.21 MB / 489.5 MB, free: 12.73 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.037e-05/0.5, allocations: 12.03 kB / 489.5 MB, free: 12.71 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003733/0.5037, allocations: 1.165 MB / 490.6 MB, free: 11.54 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01225/0.516, allocations: 2.122 MB / 492.8 MB, free: 9.41 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01448/0.5305, allocations: 5.909 MB / 498.7 MB, free: 3.434 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007059/0.5313, allocations: 0.6427 MB / 499.3 MB, free: 2.789 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00322/0.5345, allocations: 0.8514 MB / 0.4884 GB, free: 1.938 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0282/0.5627, allocations: 11.42 MB / 0.4996 GB, free: 6.438 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003649/0.5631, allocations: 7.953 kB / 0.4996 GB, free: 6.43 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002146/0.5653, allocations: 359.9 kB / 0.4999 GB, free: 6.078 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003829/0.5657, allocations: 381.5 kB / 0.5003 GB, free: 5.703 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02193/0.5876, allocations: 9.633 MB / 0.5097 GB, free: 12.05 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07305/0.6607, allocations: 35.35 MB / 0.5442 GB, free: 7.816 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3584/1.019, allocations: 16.92 MB / 0.5608 GB, free: 129.2 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007328/1.027, allocations: 3.489 MB / 0.5642 GB, free: 129.1 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02007/1.047, allocations: 9.667 MB / 0.5736 GB, free: 124.1 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.308e-05/1.047, allocations: 71.44 kB / 0.5737 GB, free: 124 MB / 478.1 MB Notification: Performance of pre-optimization done (n=308): time 6.953e-06/1.047, allocations: 1.594 kB / 0.5737 GB, free: 124 MB / 478.1 MB Notification: Performance of matching and sorting (n=360): time 0.03162/1.078, allocations: 15.45 MB / 0.5888 GB, free: 117.8 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.387e-05/1.079, allocations: 88.59 kB / 0.5888 GB, free: 117.7 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006589/1.085, allocations: 4.449 MB / 0.5932 GB, free: 116.1 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004665/1.086, allocations: 85.39 kB / 0.5933 GB, free: 116 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001839/1.087, allocations: 3.999 MB / 0.5972 GB, free: 113.5 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009156/1.088, allocations: 1.287 MB / 0.5984 GB, free: 112.5 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009475/1.089, allocations: 0.7865 MB / 0.5992 GB, free: 112.1 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.059e-05/1.089, allocations: 308.9 kB / 0.5995 GB, free: 111.8 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002557/1.092, allocations: 1.893 MB / 0.6013 GB, free: 111.1 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002938/1.095, allocations: 3.36 MB / 0.6046 GB, free: 108.5 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005858/1.101, allocations: 5.602 MB / 0.6101 GB, free: 104.6 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.771e-05/1.101, allocations: 14.06 kB / 0.6101 GB, free: 104.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=587) (initialization): time 0.009279/1.11, allocations: 6.528 MB / 0.6165 GB, free: 98.91 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.913e-05/1.11, allocations: 24 kB / 0.6165 GB, free: 98.88 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.549e-05/1.11, allocations: 48 kB / 0.6165 GB, free: 98.84 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001617/1.112, allocations: 0.7347 MB / 0.6173 GB, free: 98.09 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003497/1.115, allocations: 1.063 MB / 0.6183 GB, free: 97.03 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008269/1.124, allocations: 11.01 MB / 0.6291 GB, free: 85.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004296/1.128, allocations: 243.5 kB / 0.6293 GB, free: 85.26 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006825/1.129, allocations: 208.1 kB / 0.6295 GB, free: 85.06 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 210 * 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 (534): * Single equations (assignments): 526 * Array equations: 2 * 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 {(2,13,100.0%), (1,5,100.0%), (2,13,100.0%), (3,14,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004424/1.133, allocations: 2.542 MB / 0.632 GB, free: 82.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001265/1.134, allocations: 0.5043 MB / 0.6325 GB, free: 82 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007785/1.142, allocations: 5.392 MB / 0.6377 GB, free: 76.52 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.355e-05/1.142, allocations: 36 kB / 0.6378 GB, free: 76.48 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.52e-05/1.142, allocations: 12 kB / 0.6378 GB, free: 76.47 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.42e-05/1.142, allocations: 23.92 kB / 0.6378 GB, free: 76.45 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0192/1.162, allocations: 12.8 MB / 0.6503 GB, free: 63.48 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-05/1.162, allocations: 7.938 kB / 0.6503 GB, free: 63.48 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002338/1.164, allocations: 0.6052 MB / 0.6509 GB, free: 62.87 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00189/1.166, allocations: 0.9091 MB / 0.6518 GB, free: 61.95 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002098/1.166, allocations: 83.97 kB / 0.6519 GB, free: 61.87 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01183/1.178, allocations: 15.28 MB / 0.6668 GB, free: 45.93 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/1.178, allocations: 7.938 kB / 0.6668 GB, free: 45.92 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01067/1.189, allocations: 7.98 MB / 0.6746 GB, free: 37.75 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002424/1.191, allocations: 0.9859 MB / 0.6755 GB, free: 36.74 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009533/1.192, allocations: 83.92 kB / 0.6756 GB, free: 36.66 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002322/1.194, allocations: 179.8 kB / 0.6758 GB, free: 36.48 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000591/1.195, allocations: 282.2 kB / 0.6761 GB, free: 36.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002306/1.195, allocations: 104 kB / 0.6762 GB, free: 36.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004162/1.199, allocations: 3.009 MB / 0.6791 GB, free: 33.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.3e-07/1.199, allocations: 0 / 0.6791 GB, free: 33.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005742/1.205, allocations: 1.465 MB / 0.6805 GB, free: 31.64 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.strayReluctance.Phi.re,smee3.stator.strayReluctance.Phi.im) * 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 (284): * Single equations (assignments): 277 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,13,100.0%), (2,13,100.0%), (4,33,93.8%), (1,5,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01168/1.217, allocations: 8.684 MB / 0.689 GB, free: 22.75 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007428/1.224, allocations: 5.61 MB / 0.6945 GB, free: 17.04 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.275e-06/1.224, allocations: 0.875 kB / 0.6945 GB, free: 17.04 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004405/1.229, allocations: 3.396 MB / 0.6978 GB, free: 13.57 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004969/1.234, allocations: 1.158 MB / 0.6989 GB, free: 12.41 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2799/1.514, allocations: 51.36 MB / 0.7491 GB, free: 156 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006808/1.521, allocations: 5.067 MB / 0.754 GB, free: 155.2 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.004039/1.525, allocations: 1.062 MB / 0.7551 GB, free: 155.1 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004457/1.529, allocations: 3.365 MB / 0.7584 GB, free: 153.3 MB / 0.4982 GB Notification: Performance of SimCode: time 7.62e-07/1.529, allocations: 1.062 kB / 0.7584 GB, free: 153.3 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1723/1.701, allocations: 123.3 MB / 0.8787 GB, free: 48.16 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.05/22.75, allocations: 5.141 kB / 0.8787 GB, free: 48.15 MB / 0.4982 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMEE_Generator_MultiPhase/SMEE_Generator_MultiPhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches