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.001097/0.001097, allocations: 109.3 kB / 17.73 MB, free: 5.316 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.001061/0.001061, allocations: 188.2 kB / 18.66 MB, free: 4.391 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.373/1.373, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001498/0.001498, allocations: 59.92 kB / 328.1 MB, free: 3.762 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09419/0.09569, allocations: 46.62 MB / 374.7 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase): time 0.213/0.3087, allocations: 29.41 MB / 404.1 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01958/0.3284, allocations: 8.129 MB / 412.2 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008933/0.3373, allocations: 171.4 kB / 412.4 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007847/0.3453, allocations: 1.979 MB / 414.4 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01189/0.3572, allocations: 2.741 MB / 417.1 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005811/0.3631, allocations: 1.769 MB / 418.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0156/0.3787, allocations: 10.23 MB / 429.1 MB, free: 9.066 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01218/0.3909, allocations: 9.459 MB / 438.6 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008741/0.3997, allocations: 4.786 MB / 443.4 MB, free: 11.04 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01003/0.4097, allocations: 5.538 MB / 448.9 MB, free: 5.477 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003722/0.4135, allocations: 1.363 MB / 450.3 MB, free: 4.113 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00572/0.4192, allocations: 1.722 MB / 452 MB, free: 2.391 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004058/0.4233, allocations: 3.023 MB / 455 MB, free: 15.36 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01046/0.4338, allocations: 5.66 MB / 460.7 MB, free: 9.676 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02498/0.4588, allocations: 17.58 MB / 478.2 MB, free: 8.039 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.837e-06/0.4589, allocations: 0 / 478.2 MB, free: 8.039 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.4589, allocations: 4 kB / 478.3 MB, free: 8.035 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006118/0.4595, allocations: 0 / 478.3 MB, free: 8.035 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.0329/0.4924, allocations: 11.2 MB / 489.5 MB, free: 12.71 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.253e-05/0.4925, allocations: 16.02 kB / 489.5 MB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004218/0.4967, allocations: 1.169 MB / 490.6 MB, free: 11.52 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01293/0.5097, allocations: 2.118 MB / 492.8 MB, free: 9.395 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01503/0.5248, allocations: 5.909 MB / 498.7 MB, free: 3.418 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006734/0.5255, allocations: 0.6427 MB / 499.3 MB, free: 2.773 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003076/0.5286, allocations: 0.8475 MB / 0.4884 GB, free: 1.926 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03/0.5586, allocations: 11.42 MB / 0.4996 GB, free: 6.422 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000334/0.559, allocations: 11.95 kB / 0.4996 GB, free: 6.41 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00251/0.5615, allocations: 356 kB / 0.4999 GB, free: 6.062 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004152/0.562, allocations: 381.5 kB / 0.5003 GB, free: 5.688 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02466/0.5866, allocations: 9.622 MB / 0.5097 GB, free: 12.05 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07315/0.6598, allocations: 35.36 MB / 0.5442 GB, free: 7.809 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3682/1.028, allocations: 16.93 MB / 0.5608 GB, free: 129.1 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007971/1.036, allocations: 3.486 MB / 0.5642 GB, free: 129.1 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02068/1.057, allocations: 9.667 MB / 0.5736 GB, free: 124.1 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.321e-05/1.057, allocations: 68.42 kB / 0.5737 GB, free: 124 MB / 478.1 MB Notification: Performance of pre-optimization done (n=308): time 7.444e-06/1.057, allocations: 0 / 0.5737 GB, free: 124 MB / 478.1 MB Notification: Performance of matching and sorting (n=360): time 0.03742/1.094, allocations: 15.45 MB / 0.5888 GB, free: 117.7 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.461e-05/1.094, allocations: 88.59 kB / 0.5888 GB, free: 117.7 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008191/1.103, allocations: 4.445 MB / 0.5932 GB, free: 116.1 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009559/1.104, allocations: 92.89 kB / 0.5933 GB, free: 116 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002753/1.106, allocations: 3.992 MB / 0.5972 GB, free: 113.5 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001459/1.108, allocations: 1.287 MB / 0.5984 GB, free: 112.5 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001147/1.109, allocations: 0.7911 MB / 0.5992 GB, free: 112.1 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 7.423e-05/1.109, allocations: 305.1 kB / 0.5995 GB, free: 111.8 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00289/1.112, allocations: 1.894 MB / 0.6013 GB, free: 111 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003397/1.116, allocations: 3.357 MB / 0.6046 GB, free: 108.4 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007003/1.123, allocations: 5.602 MB / 0.6101 GB, free: 104.6 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.507e-05/1.123, allocations: 15.16 kB / 0.6101 GB, free: 104.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=587) (initialization): time 0.01139/1.134, allocations: 6.537 MB / 0.6165 GB, free: 98.89 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.506e-05/1.134, allocations: 24 kB / 0.6165 GB, free: 98.87 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.418e-05/1.134, allocations: 44 kB / 0.6165 GB, free: 98.83 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001732/1.136, allocations: 0.7341 MB / 0.6173 GB, free: 98.08 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003819/1.14, allocations: 1.065 MB / 0.6183 GB, free: 97.02 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00897/1.149, allocations: 11.01 MB / 0.6291 GB, free: 85.49 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005304/1.154, allocations: 243.7 kB / 0.6293 GB, free: 85.25 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008957/1.155, allocations: 208 kB / 0.6295 GB, free: 85.05 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.005694/1.161, allocations: 2.538 MB / 0.632 GB, free: 82.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001838/1.163, allocations: 0.504 MB / 0.6325 GB, free: 81.99 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008792/1.171, allocations: 5.399 MB / 0.6377 GB, free: 76.5 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.026e-05/1.172, allocations: 36 kB / 0.6378 GB, free: 76.46 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.546e-05/1.172, allocations: 12 kB / 0.6378 GB, free: 76.45 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.961e-05/1.172, allocations: 19.94 kB / 0.6378 GB, free: 76.43 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02875/1.2, allocations: 12.8 MB / 0.6503 GB, free: 63.48 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.401e-05/1.2, allocations: 7.938 kB / 0.6503 GB, free: 63.47 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002876/1.203, allocations: 0.6052 MB / 0.6509 GB, free: 62.87 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00236/1.206, allocations: 0.9019 MB / 0.6518 GB, free: 61.95 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006198/1.206, allocations: 87.97 kB / 0.6519 GB, free: 61.86 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0139/1.22, allocations: 15.28 MB / 0.6668 GB, free: 45.92 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/1.22, allocations: 4 kB / 0.6668 GB, free: 45.91 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01433/1.235, allocations: 7.984 MB / 0.6746 GB, free: 37.73 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003464/1.238, allocations: 0.9936 MB / 0.6755 GB, free: 36.72 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00183/1.24, allocations: 72 kB / 0.6756 GB, free: 36.65 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00404/1.244, allocations: 179.8 kB / 0.6758 GB, free: 36.47 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001135/1.245, allocations: 278.2 kB / 0.6761 GB, free: 36.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005145/1.246, allocations: 104 kB / 0.6762 GB, free: 36.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006173/1.252, allocations: 3.009 MB / 0.6791 GB, free: 33.09 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.51e-07/1.252, allocations: 4 kB / 0.6791 GB, free: 33.09 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007674/1.26, allocations: 1.461 MB / 0.6805 GB, free: 31.63 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.01463/1.274, allocations: 8.687 MB / 0.689 GB, free: 22.75 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01018/1.285, allocations: 5.61 MB / 0.6945 GB, free: 17.03 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.39e-05/1.285, allocations: 4.875 kB / 0.6945 GB, free: 17.03 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006175/1.291, allocations: 3.388 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.008555/1.3, allocations: 1.163 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.3113/1.611, 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.008406/1.619, allocations: 5.066 MB / 0.754 GB, free: 155.2 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.004382/1.624, 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.005311/1.629, allocations: 3.364 MB / 0.7584 GB, free: 153.3 MB / 0.4982 GB Notification: Performance of SimCode: time 1.272e-06/1.629, allocations: 0 / 0.7584 GB, free: 153.3 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1805/1.81, allocations: 123.3 MB / 0.8787 GB, free: 48.15 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.37/24.18, allocations: 448 / 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