Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_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.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_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.001739/0.001739, allocations: 109.4 kB / 17.73 MB, free: 5.336 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.001872/0.001872, allocations: 192.2 kB / 18.67 MB, free: 4.402 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.516/1.516, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001694/0.001694, allocations: 55.92 kB / 328.1 MB, free: 3.781 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09404/0.09575, allocations: 46.61 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.2309/0.3267, allocations: 23.72 MB / 398.4 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01831/0.345, allocations: 6.548 MB / 404.9 MB, free: 9.609 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007382/0.3525, allocations: 141.1 kB / 405.1 MB, free: 9.574 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007965/0.3606, allocations: 1.566 MB / 406.6 MB, free: 8.715 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01299/0.3736, allocations: 2.124 MB / 408.8 MB, free: 7.277 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005902/0.3795, allocations: 1.442 MB / 410.2 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01563/0.3952, allocations: 8.081 MB / 418.3 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01137/0.4066, allocations: 7.15 MB / 425.4 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008474/0.4151, allocations: 3.817 MB / 429.3 MB, free: 9.254 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008973/0.4242, allocations: 4.425 MB / 433.7 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003409/0.4276, allocations: 1.094 MB / 434.8 MB, free: 3.719 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005497/0.4332, allocations: 1.304 MB / 436.1 MB, free: 2.414 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004284/0.4375, allocations: 2.431 MB / 438.5 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01023/0.4477, allocations: 4.52 MB / 443 MB, free: 11.44 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02346/0.4712, allocations: 14.22 MB / 457.3 MB, free: 13.17 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.258e-06/0.4713, allocations: 0 / 457.3 MB, free: 13.17 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.4713, allocations: 0 / 457.3 MB, free: 13.17 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005037/0.4718, allocations: 0 / 457.3 MB, free: 13.17 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.0302/0.502, allocations: 9.026 MB / 466.3 MB, free: 4.039 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.937e-05/0.5021, allocations: 8.031 kB / 466.3 MB, free: 4.031 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002975/0.5051, allocations: 0.955 MB / 467.2 MB, free: 3.062 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01012/0.5153, allocations: 1.698 MB / 468.9 MB, free: 1.359 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01166/0.5269, allocations: 4.574 MB / 473.5 MB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006445/0.5276, allocations: 0.5182 MB / 474 MB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002825/0.5305, allocations: 0.6873 MB / 474.7 MB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02513/0.5556, allocations: 9.435 MB / 484.2 MB, free: 2.004 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002155/0.5559, allocations: 7.938 kB / 484.2 MB, free: 1.996 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001388/0.5573, allocations: 288 kB / 484.4 MB, free: 1.715 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004115/0.5577, allocations: 330.2 kB / 484.8 MB, free: 1.391 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02162/0.5793, allocations: 8.055 MB / 492.8 MB, free: 9.324 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06757/0.6469, allocations: 28.49 MB / 0.5091 GB, free: 12.21 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02057/0.6676, allocations: 16.6 MB / 0.5253 GB, free: 9.723 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006553/0.6742, allocations: 2.916 MB / 0.5282 GB, free: 6.789 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01855/0.6927, allocations: 7.691 MB / 0.5357 GB, free: 14.93 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.446e-05/0.6929, allocations: 64.61 kB / 0.5357 GB, free: 14.86 MB / 478.1 MB Notification: Performance of pre-optimization done (n=259): time 5.09e-06/0.6929, allocations: 0 / 0.5357 GB, free: 14.86 MB / 478.1 MB Notification: Performance of matching and sorting (n=265): time 0.02818/0.7211, allocations: 11.09 MB / 0.5466 GB, free: 3.445 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.501e-05/0.7212, allocations: 81.5 kB / 0.5466 GB, free: 3.352 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3682/1.089, allocations: 3.376 MB / 0.5499 GB, free: 144.3 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005846/1.09, allocations: 74.67 kB / 0.55 GB, free: 144.3 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002627/1.093, allocations: 3.122 MB / 0.5531 GB, free: 144.1 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009293/1.094, allocations: 0.9583 MB / 0.554 GB, free: 143.4 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00107/1.095, allocations: 0.5956 MB / 0.5546 GB, free: 143.2 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 6.205e-05/1.095, allocations: 306 kB / 0.5549 GB, free: 142.9 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002564/1.097, allocations: 1.391 MB / 0.5562 GB, free: 142.3 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002951/1.1, allocations: 2.431 MB / 0.5586 GB, free: 140.5 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005948/1.106, allocations: 4.078 MB / 0.5626 GB, free: 137.8 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.53e-05/1.106, allocations: 9.688 kB / 0.5626 GB, free: 137.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.008664/1.115, allocations: 4.717 MB / 0.5672 GB, free: 135.8 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.326e-05/1.115, allocations: 19.25 kB / 0.5672 GB, free: 135.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.887e-05/1.115, allocations: 35.56 kB / 0.5672 GB, free: 135.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001087/1.116, allocations: 393.7 kB / 0.5676 GB, free: 135.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003045/1.119, allocations: 0.7942 MB / 0.5684 GB, free: 135.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006427/1.126, allocations: 7.972 MB / 0.5762 GB, free: 128.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003334/1.129, allocations: 164.1 kB / 0.5763 GB, free: 128.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003437/1.129, allocations: 149.6 kB / 0.5765 GB, free: 128.5 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * 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 (411): * Single equations (assignments): 405 * Array equations: 0 * 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 {(1,1,100.0%), (1,5,100.0%), (1,1,100.0%), (3,14,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004178/1.134, allocations: 2.074 MB / 0.5785 GB, free: 127.4 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009211/1.135, allocations: 386 kB / 0.5789 GB, free: 127.2 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007225/1.142, allocations: 4.221 MB / 0.583 GB, free: 125.3 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.398e-05/1.142, allocations: 26.06 kB / 0.583 GB, free: 125.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.685e-05/1.142, allocations: 12.91 kB / 0.583 GB, free: 125.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.261e-05/1.142, allocations: 11.3 kB / 0.583 GB, free: 125.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01406/1.156, allocations: 9.881 MB / 0.5927 GB, free: 120.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-05/1.156, allocations: 5.156 kB / 0.5927 GB, free: 120.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001635/1.158, allocations: 403 kB / 0.5931 GB, free: 120.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001908/1.16, allocations: 0.8552 MB / 0.5939 GB, free: 120.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001687/1.16, allocations: 70.2 kB / 0.594 GB, free: 120.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01308/1.173, allocations: 17.51 MB / 0.6111 GB, free: 105.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/1.173, allocations: 8.094 kB / 0.6111 GB, free: 105.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008109/1.181, allocations: 6.05 MB / 0.617 GB, free: 99.37 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001833/1.183, allocations: 0.7581 MB / 0.6177 GB, free: 98.59 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000554/1.183, allocations: 71.92 kB / 0.6178 GB, free: 98.52 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001604/1.185, allocations: 127.9 kB / 0.6179 GB, free: 98.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004539/1.185, allocations: 205.5 kB / 0.6181 GB, free: 98.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001508/1.186, allocations: 80.22 kB / 0.6182 GB, free: 98.12 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002876/1.189, allocations: 2.294 MB / 0.6204 GB, free: 95.84 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.189, allocations: 0 / 0.6204 GB, free: 95.84 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003689/1.192, allocations: 1.143 MB / 0.6216 GB, free: 94.7 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * 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 (198): * Single equations (assignments): 191 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,5,100.0%), (4,33,93.8%), (1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008068/1.2, allocations: 6.723 MB / 0.6281 GB, free: 87.78 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005904/1.206, allocations: 4.127 MB / 0.6322 GB, free: 83.53 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/1.206, allocations: 7.781 kB / 0.6322 GB, free: 83.53 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003676/1.21, allocations: 2.855 MB / 0.635 GB, free: 80.58 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00455/1.215, allocations: 1.001 MB / 0.6359 GB, free: 79.59 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0556/1.27, allocations: 39.31 MB / 0.6743 GB, free: 38.96 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003234/1.273, allocations: 4.225 MB / 0.6784 GB, free: 34.71 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002629/1.276, allocations: 0.8365 MB / 0.6793 GB, free: 33.86 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002693/1.279, allocations: 2.534 MB / 0.6817 GB, free: 31.33 MB / 478.1 MB Notification: Performance of SimCode: time 8.02e-07/1.279, allocations: 0 / 0.6817 GB, free: 31.33 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4154/1.694, allocations: 99.31 MB / 0.7787 GB, free: 153.2 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.03/20.72, allocations: 4.469 kB / 0.7787 GB, free: 153.2 MB / 0.4982 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_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/SMR_Inverter_MultiPhase/SMR_Inverter_MultiPhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches