Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_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.001972/0.001972, allocations: 96.52 kB / 17.58 MB, free: 5.453 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.002525/0.002525, allocations: 192.2 kB / 18.51 MB, free: 4.527 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.707/2.707, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.002979/0.002979, allocations: 55.92 kB / 280.8 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1539/0.157, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase): time 0.04554/0.2026, allocations: 25.34 MB / 352.7 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02937/0.232, allocations: 7.067 MB / 359.8 MB, free: 3.828 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01125/0.2434, allocations: 147.4 kB / 359.9 MB, free: 3.684 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009851/0.2533, allocations: 1.708 MB / 361.6 MB, free: 1.965 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01503/0.2685, allocations: 2.271 MB / 363.9 MB, free: 15.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008524/0.277, allocations: 1.52 MB / 365.4 MB, free: 14.15 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02038/0.2974, allocations: 8.472 MB / 373.9 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3912/0.6887, allocations: 7.269 MB / 381.2 MB, free: 15.1 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01236/0.7011, allocations: 3.973 MB / 385.2 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01573/0.7169, allocations: 4.601 MB / 389.8 MB, free: 14 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007329/0.7243, allocations: 1.136 MB / 390.9 MB, free: 14 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01015/0.7345, allocations: 1.352 MB / 392.2 MB, free: 14 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00898/0.7435, allocations: 2.519 MB / 394.8 MB, free: 13.71 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01614/0.7597, allocations: 4.716 MB / 399.5 MB, free: 12.56 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02645/0.7862, allocations: 14.6 MB / 414.1 MB, free: 4.508 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.327e-05/0.7863, allocations: 0 / 414.1 MB, free: 4.508 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.606e-06/0.7863, allocations: 0 / 414.1 MB, free: 4.508 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0007357/0.7871, allocations: 3.844 kB / 414.1 MB, free: 4.508 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.05134/0.8384, allocations: 9.225 MB / 423.3 MB, free: 14.51 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.748e-05/0.8385, allocations: 10.06 kB / 423.3 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006816/0.8454, allocations: 0.9957 MB / 424.3 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0228/0.8682, allocations: 1.737 MB / 426.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02086/0.8892, allocations: 4.695 MB / 430.7 MB, free: 7.598 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001231/0.8905, allocations: 0.5376 MB / 431.3 MB, free: 7.062 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004911/0.8954, allocations: 0.7136 MB / 432 MB, free: 6.352 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05216/0.9476, allocations: 9.779 MB / 441.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006798/0.9484, allocations: 7.906 kB / 441.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003894/0.9524, allocations: 297.9 kB / 442.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006794/0.9531, allocations: 358.1 kB / 442.4 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03534/0.9885, allocations: 8.294 MB / 450.7 MB, free: 3.578 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1265/1.115, allocations: 30.48 MB / 481.2 MB, free: 5.031 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03076/1.146, allocations: 16.08 MB / 497.3 MB, free: 3.203 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01055/1.157, allocations: 3.039 MB / 0.4886 GB, free: 152 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03133/1.188, allocations: 8.083 MB / 0.4965 GB, free: 8.027 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001003/1.188, allocations: 68.72 kB / 0.4966 GB, free: 7.949 MB / 414.1 MB Notification: Performance of pre-optimization done (n=281): time 1.001e-05/1.188, allocations: 0 / 0.4966 GB, free: 7.949 MB / 414.1 MB Notification: Performance of matching and sorting (n=289): time 0.04835/1.236, allocations: 11.58 MB / 0.5079 GB, free: 12.12 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/1.237, allocations: 81.69 kB / 0.5079 GB, free: 12.03 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0126/1.249, allocations: 3.641 MB / 0.5115 GB, free: 8.406 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008295/1.25, allocations: 69.7 kB / 0.5116 GB, free: 8.332 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004503/1.255, allocations: 3.199 MB / 0.5147 GB, free: 5.113 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002293/1.257, allocations: 0.9856 MB / 0.5156 GB, free: 4.133 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003175/1.26, allocations: 0.6452 MB / 0.5163 GB, free: 3.48 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/1.26, allocations: 309.1 kB / 0.5166 GB, free: 3.176 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00512/1.266, allocations: 1.483 MB / 0.518 GB, free: 1.691 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006809/1.272, allocations: 2.624 MB / 0.5206 GB, free: 14.59 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01278/1.285, allocations: 4.39 MB / 0.5249 GB, free: 9.816 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.315e-05/1.285, allocations: 8 kB / 0.5249 GB, free: 9.809 MB / 446.1 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.01869/1.304, allocations: 5.01 MB / 0.5298 GB, free: 4.941 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001074/1.304, allocations: 23.94 kB / 0.5298 GB, free: 4.918 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001193/1.304, allocations: 36 kB / 0.5298 GB, free: 4.883 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0018/1.306, allocations: 416.8 kB / 0.5302 GB, free: 4.465 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006892/1.313, allocations: 0.8595 MB / 0.5311 GB, free: 3.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3328/1.646, allocations: 7.971 MB / 0.5389 GB, free: 147.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006655/1.653, allocations: 168.8 kB / 0.539 GB, free: 147.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001165/1.654, allocations: 164.4 kB / 0.5392 GB, free: 147.5 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 162 * 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 (451): * Single equations (assignments): 445 * 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,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008646/1.663, allocations: 2.137 MB / 0.5413 GB, free: 147.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002202/1.665, allocations: 402 kB / 0.5416 GB, free: 147.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01487/1.68, allocations: 4.467 MB / 0.546 GB, free: 145.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-05/1.68, allocations: 28.06 kB / 0.546 GB, free: 145.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.777e-05/1.68, allocations: 12.72 kB / 0.546 GB, free: 145.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.671e-05/1.68, allocations: 13.83 kB / 0.5461 GB, free: 145.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04268/1.723, allocations: 10.47 MB / 0.5563 GB, free: 141.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-05/1.723, allocations: 7.188 kB / 0.5563 GB, free: 141.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003687/1.727, allocations: 437.2 kB / 0.5567 GB, free: 141.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004031/1.731, allocations: 0.8839 MB / 0.5576 GB, free: 140.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000686/1.731, allocations: 80.03 kB / 0.5576 GB, free: 140.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02589/1.757, allocations: 17.66 MB / 0.5749 GB, free: 126.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.071e-05/1.757, allocations: 6.406 kB / 0.5749 GB, free: 126.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01863/1.776, allocations: 6.417 MB / 0.5812 GB, free: 123.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003415/1.779, allocations: 0.8061 MB / 0.5819 GB, free: 123.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001804/1.781, allocations: 67.28 kB / 0.582 GB, free: 123.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004623/1.786, allocations: 141.5 kB / 0.5821 GB, free: 123.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001057/1.787, allocations: 215.6 kB / 0.5824 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004959/1.788, allocations: 87.91 kB / 0.5824 GB, free: 123.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.007928/1.795, allocations: 2.468 MB / 0.5848 GB, free: 122.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.282e-06/1.796, allocations: 0 / 0.5848 GB, free: 122.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00916/1.805, allocations: 1.213 MB / 0.586 GB, free: 122.3 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.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 (220): * Single equations (assignments): 213 * 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,13,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01626/1.821, allocations: 7.104 MB / 0.593 GB, free: 115.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02405/1.845, allocations: 6.172 MB / 0.599 GB, free: 110 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.247e-05/1.845, allocations: 0 / 0.599 GB, free: 110 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008447/1.854, allocations: 2.977 MB / 0.6019 GB, free: 106.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01351/1.867, allocations: 1.119 MB / 0.603 GB, free: 105.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1339/2.001, allocations: 52.14 MB / 0.6539 GB, free: 48.36 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01199/2.013, allocations: 4.347 MB / 0.6582 GB, free: 43.98 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.007917/2.021, allocations: 0.8903 MB / 0.659 GB, free: 43.08 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008352/2.03, allocations: 2.729 MB / 0.6617 GB, free: 40.36 MB / 446.1 MB Notification: Performance of SimCode: time 2.495e-06/2.03, allocations: 0 / 0.6617 GB, free: 40.36 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.627/2.657, allocations: 107.4 MB / 0.7666 GB, free: 104.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.68/22.34, allocations: 2.547 kB / 0.7666 GB, free: 104.3 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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_SMPM_Inverter_MultiPhase.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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/SMPM_Inverter_MultiPhase/SMPM_Inverter_MultiPhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches