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.001646/0.001646, allocations: 109.5 kB / 17.73 MB, free: 5.363 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.002/0.002, allocations: 188.1 kB / 18.66 MB, free: 4.441 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.404/1.404, allocations: 205.1 MB / 224.5 MB, free: 12.29 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.001317/0.001317, allocations: 47.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08266/0.08399, allocations: 46.64 MB / 374.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.1837/0.2678, allocations: 23.71 MB / 398.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01506/0.2829, allocations: 6.544 MB / 404.9 MB, free: 9.613 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004709/0.2876, allocations: 145.1 kB / 405.1 MB, free: 9.574 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004808/0.2925, allocations: 1.573 MB / 406.6 MB, free: 8.707 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007581/0.3001, allocations: 2.109 MB / 408.8 MB, free: 7.285 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003954/0.3041, allocations: 1.45 MB / 410.2 MB, free: 6.352 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01094/0.315, allocations: 8.078 MB / 418.3 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008396/0.3235, allocations: 7.158 MB / 425.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005631/0.3291, allocations: 3.832 MB / 429.3 MB, free: 9.242 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006701/0.3358, allocations: 4.429 MB / 433.7 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002532/0.3384, allocations: 1.094 MB / 434.8 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004054/0.3425, allocations: 1.301 MB / 436.1 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002367/0.3449, allocations: 2.435 MB / 438.5 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006765/0.3516, allocations: 4.52 MB / 443.1 MB, free: 11.42 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01411/0.3658, allocations: 14.18 MB / 457.2 MB, free: 13.2 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.3658, allocations: 0 / 457.2 MB, free: 13.2 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3658, allocations: 0 / 457.2 MB, free: 13.2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003457/0.3662, allocations: 0 / 457.2 MB, free: 13.2 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.02444/0.3906, allocations: 8.844 MB / 466.1 MB, free: 4.254 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.3907, allocations: 8.031 kB / 466.1 MB, free: 4.246 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001442/0.3921, allocations: 0.955 MB / 467 MB, free: 3.277 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008007/0.4001, allocations: 1.663 MB / 468.7 MB, free: 1.605 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008073/0.4082, allocations: 4.549 MB / 473.3 MB, free: 12.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003638/0.4086, allocations: 0.5143 MB / 473.8 MB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001366/0.41, allocations: 0.6872 MB / 474.5 MB, free: 11.78 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01653/0.4265, allocations: 9.431 MB / 483.9 MB, free: 2.281 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001439/0.4267, allocations: 19.83 kB / 483.9 MB, free: 2.262 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007191/0.4274, allocations: 288 kB / 484.2 MB, free: 1.98 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002602/0.4277, allocations: 334.2 kB / 484.5 MB, free: 1.652 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01509/0.4428, allocations: 8.047 MB / 492.6 MB, free: 9.594 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0475/0.4904, allocations: 28.4 MB / 0.5087 GB, free: 12.56 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01429/0.5047, allocations: 16.6 MB / 0.525 GB, free: 10.08 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004454/0.5092, allocations: 2.912 MB / 0.5278 GB, free: 7.148 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01224/0.5214, allocations: 7.698 MB / 0.5353 GB, free: 15.29 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.231e-05/0.5215, allocations: 60.61 kB / 0.5354 GB, free: 15.22 MB / 478.1 MB Notification: Performance of pre-optimization done (n=259): time 3.917e-06/0.5215, allocations: 0 / 0.5354 GB, free: 15.22 MB / 478.1 MB Notification: Performance of matching and sorting (n=265): time 0.02081/0.5423, allocations: 10.99 MB / 0.5461 GB, free: 3.895 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.5424, allocations: 81.48 kB / 0.5462 GB, free: 3.801 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003907/0.5463, allocations: 3.369 MB / 0.5495 GB, free: 448 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001387/0.5465, allocations: 73.7 kB / 0.5496 GB, free: 368 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1434/0.6899, allocations: 3.036 MB / 0.5525 GB, free: 145.1 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007391/0.6906, allocations: 0.9103 MB / 0.5534 GB, free: 144.5 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008056/0.6914, allocations: 0.5917 MB / 0.554 GB, free: 144.3 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.318e-05/0.6915, allocations: 306.8 kB / 0.5543 GB, free: 144 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002136/0.6936, allocations: 1.389 MB / 0.5556 GB, free: 143.4 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002325/0.696, allocations: 2.43 MB / 0.558 GB, free: 141.6 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004441/0.7004, allocations: 4.077 MB / 0.562 GB, free: 139 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.787e-05/0.7004, allocations: 9.781 kB / 0.562 GB, free: 139 MB / 478.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.006535/0.707, allocations: 4.698 MB / 0.5666 GB, free: 136.9 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.369e-05/0.707, allocations: 23.44 kB / 0.5666 GB, free: 136.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.33e-05/0.7071, allocations: 32 kB / 0.5666 GB, free: 136.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008182/0.7079, allocations: 401.9 kB / 0.567 GB, free: 136.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002606/0.7105, allocations: 0.7926 MB / 0.5678 GB, free: 136.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005225/0.7158, allocations: 7.975 MB / 0.5756 GB, free: 129.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002714/0.7185, allocations: 160.4 kB / 0.5757 GB, free: 129.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003592/0.7189, allocations: 150 kB / 0.5759 GB, free: 129.6 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.003336/0.7222, allocations: 2.076 MB / 0.5779 GB, free: 128.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006729/0.7229, allocations: 370.5 kB / 0.5783 GB, free: 128.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006334/0.7292, allocations: 4.219 MB / 0.5824 GB, free: 126.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.777e-05/0.7293, allocations: 27.72 kB / 0.5824 GB, free: 126.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.547e-05/0.7293, allocations: 12.38 kB / 0.5824 GB, free: 126.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.019e-05/0.7293, allocations: 10.88 kB / 0.5824 GB, free: 126.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0128/0.7421, allocations: 9.874 MB / 0.5921 GB, free: 122 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.388e-06/0.7422, allocations: 3.625 kB / 0.5921 GB, free: 122 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00151/0.7437, allocations: 404.9 kB / 0.5925 GB, free: 122 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001726/0.7454, allocations: 0.8526 MB / 0.5933 GB, free: 121.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001534/0.7456, allocations: 70.47 kB / 0.5934 GB, free: 121.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01171/0.7573, allocations: 17.5 MB / 0.6104 GB, free: 106.1 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.7573, allocations: 4 kB / 0.6105 GB, free: 106.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00741/0.7648, allocations: 6.028 MB / 0.6163 GB, free: 99.86 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001768/0.7666, allocations: 0.7502 MB / 0.6171 GB, free: 99.09 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004999/0.7671, allocations: 64 kB / 0.6171 GB, free: 99.03 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001525/0.7686, allocations: 127.9 kB / 0.6173 GB, free: 98.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003916/0.769, allocations: 209.6 kB / 0.6175 GB, free: 98.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001297/0.7691, allocations: 75.98 kB / 0.6175 GB, free: 98.62 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002579/0.7717, allocations: 2.294 MB / 0.6198 GB, free: 96.34 MB / 478.1 MB Notification: Performance of sort global known variables: time 8.72e-07/0.7717, allocations: 0 / 0.6198 GB, free: 96.34 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003362/0.7751, allocations: 1.147 MB / 0.6209 GB, free: 95.2 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.008046/0.7832, allocations: 6.7 MB / 0.6274 GB, free: 88.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005729/0.789, allocations: 4.13 MB / 0.6315 GB, free: 84.05 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/0.789, allocations: 0 / 0.6315 GB, free: 84.05 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003692/0.7927, allocations: 2.849 MB / 0.6342 GB, free: 81.11 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004/0.7967, allocations: 1.009 MB / 0.6352 GB, free: 80.12 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05172/0.8485, allocations: 39.07 MB / 0.6734 GB, free: 39.71 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003114/0.8516, allocations: 4.225 MB / 0.6775 GB, free: 35.46 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002377/0.854, allocations: 0.8326 MB / 0.6783 GB, free: 34.62 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002337/0.8564, allocations: 2.538 MB / 0.6808 GB, free: 32.08 MB / 478.1 MB Notification: Performance of SimCode: time 8.32e-07/0.8564, allocations: 0 / 0.6808 GB, free: 32.08 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5826/1.439, allocations: 99.77 MB / 0.7782 GB, free: 153.7 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 18/19.44, allocations: 4.438 kB / 0.7782 GB, free: 153.7 MB / 0.4981 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 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.mat","/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