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.001236/0.001236, allocations: 114.4 kB / 17.74 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.001252/0.001252, allocations: 183.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.481/1.481, allocations: 205.1 MB / 224.5 MB, free: 12.28 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.001372/0.001373, allocations: 43.94 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.103, allocations: 46.62 MB / 374.7 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase): time 0.2411/0.3442, allocations: 25.35 MB / 400 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02112/0.3654, allocations: 7.066 MB / 407.1 MB, free: 7.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008527/0.374, allocations: 151.3 kB / 407.2 MB, free: 7.941 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007831/0.382, allocations: 1.781 MB / 409 MB, free: 6.957 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01199/0.394, allocations: 2.355 MB / 411.4 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006395/0.4004, allocations: 1.525 MB / 412.9 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01712/0.4176, allocations: 8.531 MB / 421.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0114/0.429, allocations: 7.281 MB / 428.7 MB, free: 9.777 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007821/0.4369, allocations: 4.003 MB / 432.7 MB, free: 5.762 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008961/0.4459, allocations: 4.612 MB / 437.3 MB, free: 1.133 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003426/0.4494, allocations: 1.133 MB / 438.4 MB, free: 0 / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006015/0.4554, allocations: 1.347 MB / 439.8 MB, free: 14.65 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004232/0.4596, allocations: 2.528 MB / 442.3 MB, free: 12.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01043/0.4701, allocations: 4.711 MB / 447 MB, free: 7.387 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02172/0.4919, allocations: 14.76 MB / 461.8 MB, free: 8.582 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.889e-06/0.4919, allocations: 4 kB / 461.8 MB, free: 8.578 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.4919, allocations: 4 kB / 461.8 MB, free: 8.574 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004743/0.4924, allocations: 0 / 461.8 MB, free: 8.574 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: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.03113/0.5235, allocations: 9.418 MB / 471.2 MB, free: 15.05 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.593e-05/0.5236, allocations: 12.03 kB / 471.2 MB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003771/0.5274, allocations: 0.996 MB / 472.2 MB, free: 14.03 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01101/0.5384, allocations: 1.772 MB / 474 MB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01233/0.5508, allocations: 4.765 MB / 478.8 MB, free: 7.418 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006828/0.5515, allocations: 0.5382 MB / 479.3 MB, free: 6.879 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003245/0.5548, allocations: 0.7147 MB / 480 MB, free: 6.164 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02685/0.5816, allocations: 9.773 MB / 489.8 MB, free: 12.31 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000331/0.582, allocations: 11.95 kB / 489.8 MB, free: 12.3 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002204/0.5842, allocations: 296 kB / 490.1 MB, free: 12.01 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004193/0.5847, allocations: 358.6 kB / 490.4 MB, free: 11.66 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02301/0.6077, allocations: 8.287 MB / 498.7 MB, free: 3.363 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07019/0.6779, allocations: 30.16 MB / 0.5165 GB, free: 4.496 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01832/0.6963, allocations: 16.09 MB / 0.5322 GB, free: 2.645 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006145/0.7025, allocations: 3.023 MB / 0.5352 GB, free: 15.61 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01782/0.7204, allocations: 8.051 MB / 0.543 GB, free: 7.398 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.747e-05/0.7205, allocations: 68.78 kB / 0.5431 GB, free: 7.32 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 6.873e-06/0.7205, allocations: 0 / 0.5431 GB, free: 7.32 MB / 478.1 MB Notification: Performance of matching and sorting (n=289): time 0.424/1.144, allocations: 11.67 MB / 0.5545 GB, free: 144.2 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.145e-05/1.145, allocations: 86.3 kB / 0.5546 GB, free: 144.2 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007236/1.152, allocations: 3.641 MB / 0.5581 GB, free: 142.9 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004373/1.152, allocations: 78.14 kB / 0.5582 GB, free: 142.8 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002472/1.155, allocations: 3.268 MB / 0.5614 GB, free: 140.7 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00123/1.156, allocations: 1.042 MB / 0.5624 GB, free: 140.1 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001109/1.157, allocations: 0.6519 MB / 0.563 GB, free: 139.7 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.125e-05/1.157, allocations: 303.4 kB / 0.5633 GB, free: 139.4 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002719/1.16, allocations: 1.479 MB / 0.5648 GB, free: 138.9 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003356/1.163, allocations: 2.626 MB / 0.5673 GB, free: 136.9 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006178/1.169, allocations: 4.386 MB / 0.5716 GB, free: 134 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.701e-05/1.17, allocations: 10.06 kB / 0.5716 GB, free: 134 MB / 478.1 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.009787/1.179, allocations: 5.047 MB / 0.5766 GB, free: 131.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.435e-05/1.179, allocations: 24.38 kB / 0.5766 GB, free: 131.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.907e-05/1.179, allocations: 39.38 kB / 0.5766 GB, free: 131.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001097/1.181, allocations: 398.5 kB / 0.577 GB, free: 131.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003188/1.184, allocations: 0.8641 MB / 0.5778 GB, free: 131.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005522/1.189, allocations: 7.97 MB / 0.5856 GB, free: 124.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003784/1.193, allocations: 174.2 kB / 0.5858 GB, free: 124.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003693/1.193, allocations: 162.6 kB / 0.586 GB, free: 124.5 MB / 478.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.003646/1.197, allocations: 2.144 MB / 0.588 GB, free: 123.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009188/1.198, allocations: 418.8 kB / 0.5884 GB, free: 123.1 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006944/1.205, allocations: 4.468 MB / 0.5928 GB, free: 121 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.701e-05/1.205, allocations: 26 kB / 0.5928 GB, free: 121 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.039e-05/1.205, allocations: 17.31 kB / 0.5929 GB, free: 121 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.187e-05/1.205, allocations: 15.09 kB / 0.5929 GB, free: 121 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01653/1.222, allocations: 10.47 MB / 0.6031 GB, free: 115.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.259e-05/1.222, allocations: 4 kB / 0.6031 GB, free: 115.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001979/1.224, allocations: 439.3 kB / 0.6035 GB, free: 115 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001991/1.226, allocations: 0.8791 MB / 0.6044 GB, free: 114.1 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001766/1.226, allocations: 75.97 kB / 0.6044 GB, free: 114 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01371/1.24, allocations: 17.64 MB / 0.6217 GB, free: 95.42 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/1.24, allocations: 12.22 kB / 0.6217 GB, free: 95.41 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009112/1.249, allocations: 6.456 MB / 0.628 GB, free: 88.74 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002163/1.251, allocations: 0.8146 MB / 0.6288 GB, free: 87.91 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006832/1.252, allocations: 75.36 kB / 0.6288 GB, free: 87.84 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00192/1.254, allocations: 139.8 kB / 0.629 GB, free: 87.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004326/1.254, allocations: 225.8 kB / 0.6292 GB, free: 87.48 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001541/1.254, allocations: 83.98 kB / 0.6293 GB, free: 87.39 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003108/1.257, allocations: 2.465 MB / 0.6317 GB, free: 84.95 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.257, allocations: 0 / 0.6317 GB, free: 84.95 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004369/1.262, allocations: 1.211 MB / 0.6329 GB, free: 83.74 MB / 478.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.008855/1.271, allocations: 7.124 MB / 0.6398 GB, free: 76.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006308/1.277, allocations: 4.376 MB / 0.6441 GB, free: 71.91 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.335e-06/1.277, allocations: 0 / 0.6441 GB, free: 71.91 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003982/1.281, allocations: 2.996 MB / 0.647 GB, free: 68.82 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005779/1.287, allocations: 1.124 MB / 0.6481 GB, free: 67.71 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.063/1.35, allocations: 41.8 MB / 0.6889 GB, free: 24.47 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003557/1.353, allocations: 4.351 MB / 0.6932 GB, free: 20.08 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002867/1.356, allocations: 0.8903 MB / 0.6941 GB, free: 19.18 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003011/1.359, allocations: 2.725 MB / 0.6967 GB, free: 16.46 MB / 478.1 MB Notification: Performance of SimCode: time 8.71e-07/1.359, allocations: 0 / 0.6967 GB, free: 16.46 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.425/1.784, allocations: 106.5 MB / 0.8007 GB, free: 134.8 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.33/21.12, allocations: 4.203 kB / 0.8007 GB, free: 134.8 MB / 0.4982 GB (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