Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",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.002084/0.002084, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.002006/0.002006, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.355/2.355, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00197/0.001971, allocations: 52.12 kB / 300.7 MB, free: 5.746 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1764/0.1784, allocations: 49.43 MB / 350.2 MB, free: 4.305 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.4104/0.5889, allocations: 21.73 MB / 371.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0199/0.6089, allocations: 6.4 MB / 378.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006547/0.6155, allocations: 138.1 kB / 378.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008264/0.6238, allocations: 1.488 MB / 379.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01475/0.6387, allocations: 2.068 MB / 382 MB, free: 9.059 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006698/0.6455, allocations: 1.288 MB / 383.3 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01309/0.6586, allocations: 6.483 MB / 389.8 MB, free: 5.199 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01076/0.6694, allocations: 5.588 MB / 395.4 MB, free: 2.914 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007498/0.6769, allocations: 2.979 MB / 398.3 MB, free: 1.492 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007905/0.6849, allocations: 3.56 MB / 401.9 MB, free: 15.2 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002837/0.6878, allocations: 0.8185 MB / 402.7 MB, free: 14.86 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005211/0.693, allocations: 1.107 MB / 403.8 MB, free: 13.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003837/0.6969, allocations: 2.022 MB / 405.8 MB, free: 11.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009785/0.7067, allocations: 3.544 MB / 409.4 MB, free: 8.227 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01538/0.7221, allocations: 10.7 MB / 420.1 MB, free: 13.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.7222, allocations: 0 / 420.1 MB, free: 13.72 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.7222, allocations: 0 / 420.1 MB, free: 13.72 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003421/0.7225, allocations: 0 / 420.1 MB, free: 13.72 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.02256/0.7451, allocations: 6.922 MB / 427 MB, free: 6.754 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.764e-05/0.7452, allocations: 11.89 kB / 427 MB, free: 6.742 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002018/0.7472, allocations: 0.7308 MB / 427.8 MB, free: 6.004 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00591/0.7531, allocations: 1.063 MB / 428.8 MB, free: 4.938 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01353/0.7667, allocations: 3.642 MB / 432.5 MB, free: 1.273 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000614/0.7674, allocations: 418.3 kB / 432.9 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003043/0.7704, allocations: 0.5303 MB / 433.4 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02459/0.795, allocations: 7.054 MB / 440.4 MB, free: 9.223 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002043/0.7953, allocations: 11.84 kB / 440.5 MB, free: 9.211 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001033/0.7963, allocations: 219.1 kB / 440.7 MB, free: 9 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002968/0.7967, allocations: 258.6 kB / 440.9 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01722/0.8139, allocations: 5.952 MB / 446.9 MB, free: 2.785 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05516/0.8691, allocations: 22.42 MB / 469.3 MB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01042/0.8796, allocations: 8.283 MB / 477.6 MB, free: 2.797 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004586/0.8842, allocations: 2.193 MB / 479.8 MB, free: 0.6016 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01291/0.8971, allocations: 6.179 MB / 486 MB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.539e-05/0.8973, allocations: 64.55 kB / 486 MB, free: 10.29 MB / 398.1 MB Notification: Performance of pre-optimization done (n=220): time 5.61e-06/0.8973, allocations: 0 / 486 MB, free: 10.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=240): time 0.0387/0.936, allocations: 11.03 MB / 497.1 MB, free: 15.03 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.9361, allocations: 77.41 kB / 497.1 MB, free: 14.94 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01305/0.9492, allocations: 3.144 MB / 0.4885 GB, free: 11.8 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001061/0.9503, allocations: 65.7 kB / 0.4886 GB, free: 11.73 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00573/0.9561, allocations: 2.504 MB / 0.4911 GB, free: 9.207 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002501/0.9587, allocations: 0.8322 MB / 0.4919 GB, free: 8.383 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003312/0.9621, allocations: 0.5613 MB / 0.4924 GB, free: 7.812 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002045/0.9623, allocations: 305.1 kB / 0.4927 GB, free: 7.512 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005109/0.9675, allocations: 1.334 MB / 0.494 GB, free: 6.176 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006643/0.9742, allocations: 2.339 MB / 0.4963 GB, free: 3.391 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01339/0.9876, allocations: 3.924 MB / 0.5001 GB, free: 15 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.369e-05/0.9877, allocations: 8 kB / 0.5001 GB, free: 14.99 MB / 430.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.01922/1.007, allocations: 4.701 MB / 0.5047 GB, free: 10.18 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001048/1.007, allocations: 20 kB / 0.5047 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001177/1.007, allocations: 32 kB / 0.5048 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002772/1.01, allocations: 0.533 MB / 0.5053 GB, free: 9.574 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006792/1.017, allocations: 0.741 MB / 0.506 GB, free: 8.832 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01748/1.034, allocations: 10.28 MB / 0.5161 GB, free: 13.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0061/1.041, allocations: 179.8 kB / 0.5162 GB, free: 13.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001076/1.042, allocations: 140 kB / 0.5164 GB, free: 13.55 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (380): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * 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): 5 systems {(3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007526/1.049, allocations: 1.574 MB / 0.5179 GB, free: 11.96 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002186/1.052, allocations: 347.7 kB / 0.5182 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01662/1.068, allocations: 4.057 MB / 0.5222 GB, free: 7.461 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.151e-05/1.068, allocations: 31.88 kB / 0.5222 GB, free: 7.43 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.805e-05/1.068, allocations: 8 kB / 0.5222 GB, free: 7.422 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.939e-05/1.068, allocations: 11.95 kB / 0.5222 GB, free: 7.41 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3756/1.444, allocations: 8.979 MB / 0.531 GB, free: 141.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-05/1.444, allocations: 5.938 kB / 0.531 GB, free: 141.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00224/1.446, allocations: 407.6 kB / 0.5314 GB, free: 141.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002381/1.449, allocations: 0.7459 MB / 0.5321 GB, free: 141.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000322/1.449, allocations: 65.14 kB / 0.5322 GB, free: 141.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01574/1.465, allocations: 16.76 MB / 0.5486 GB, free: 128.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.237e-05/1.465, allocations: 10.17 kB / 0.5486 GB, free: 128.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01191/1.477, allocations: 5.847 MB / 0.5543 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00241/1.479, allocations: 0.6857 MB / 0.555 GB, free: 125.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006837/1.48, allocations: 61.34 kB / 0.555 GB, free: 125.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001884/1.482, allocations: 135.9 kB / 0.5551 GB, free: 125.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007101/1.483, allocations: 181.5 kB / 0.5553 GB, free: 125.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002145/1.483, allocations: 73.77 kB / 0.5554 GB, free: 125.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004514/1.487, allocations: 2.125 MB / 0.5575 GB, free: 124.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.71e-07/1.487, allocations: 0 / 0.5575 GB, free: 124.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00559/1.493, allocations: 0.9953 MB / 0.5584 GB, free: 124.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.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,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * 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 (201): * Single equations (assignments): 193 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,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.01277/1.506, allocations: 6.561 MB / 0.5648 GB, free: 121.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0125/1.518, allocations: 5.718 MB / 0.5704 GB, free: 119.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.063e-05/1.518, allocations: 0 / 0.5704 GB, free: 119.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004313/1.523, allocations: 2.743 MB / 0.5731 GB, free: 117.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005515/1.528, allocations: 0.9635 MB / 0.574 GB, free: 117.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07038/1.599, allocations: 43.1 MB / 0.6161 GB, free: 71.77 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003798/1.602, allocations: 3.406 MB / 0.6195 GB, free: 68.33 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003459/1.606, allocations: 0.8112 MB / 0.6203 GB, free: 67.52 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00305/1.609, allocations: 2.1 MB / 0.6223 GB, free: 65.41 MB / 446.1 MB Notification: Performance of SimCode: time 1.973e-06/1.609, allocations: 0 / 0.6223 GB, free: 65.41 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5652/2.174, allocations: 89.36 MB / 0.7096 GB, free: 140.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.29/21.47, allocations: 10.58 kB / 0.7096 GB, free: 140.7 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_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_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches