Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001246/0.001247, allocations: 119.5 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001459/0.001459, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.5/1.5, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 59.91 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2941/0.2956, allocations: 50.53 MB / 408.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase): time 0.02854/0.3242, allocations: 25.02 MB / 433.8 MB, free: 8.398 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01531/0.3395, allocations: 6.911 MB / 440.7 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004672/0.3442, allocations: 167.4 kB / 440.9 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005574/0.3499, allocations: 1.654 MB / 442.5 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008502/0.3584, allocations: 2.198 MB / 444.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005439/0.3639, allocations: 1.485 MB / 446.2 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01263/0.3765, allocations: 8.151 MB / 454.4 MB, free: 3.77 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01332/0.3899, allocations: 7.3 MB / 461.7 MB, free: 12.38 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007564/0.3975, allocations: 3.871 MB / 465.5 MB, free: 8.492 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008664/0.4062, allocations: 4.695 MB / 470.2 MB, free: 3.781 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003766/0.41, allocations: 1.094 MB / 471.3 MB, free: 2.688 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005218/0.4152, allocations: 1.316 MB / 472.6 MB, free: 1.371 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004687/0.42, allocations: 2.447 MB / 475.1 MB, free: 14.92 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009931/0.4299, allocations: 4.536 MB / 479.6 MB, free: 10.36 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02077/0.4507, allocations: 14.3 MB / 493.9 MB, free: 12.01 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.526e-06/0.4508, allocations: 0 / 493.9 MB, free: 12.01 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4508, allocations: 4 kB / 493.9 MB, free: 12.01 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004924/0.4513, allocations: 0 / 493.9 MB, free: 12.01 MB / 414.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.02959/0.4809, allocations: 9.073 MB / 0.4912 GB, free: 2.828 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.401e-05/0.481, allocations: 16.03 kB / 0.4912 GB, free: 2.812 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003411/0.4844, allocations: 0.9549 MB / 0.4922 GB, free: 1.844 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009759/0.4942, allocations: 1.717 MB / 0.4938 GB, free: 124 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01026/0.5045, allocations: 4.887 MB / 0.4986 GB, free: 11.16 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004765/0.505, allocations: 0.5141 MB / 0.4991 GB, free: 10.64 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002142/0.5071, allocations: 0.6873 MB / 0.4998 GB, free: 9.957 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02183/0.529, allocations: 9.447 MB / 0.509 GB, free: 456 kB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002301/0.5293, allocations: 11.94 kB / 0.509 GB, free: 444 kB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001474/0.5307, allocations: 284 kB / 0.5093 GB, free: 160 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003134/0.5311, allocations: 334.2 kB / 0.5096 GB, free: 15.83 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01757/0.5486, allocations: 8.078 MB / 0.5175 GB, free: 7.738 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2875/0.8362, allocations: 28.66 MB / 0.5455 GB, free: 104.8 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01365/0.8499, allocations: 17.74 MB / 0.5628 GB, free: 90.8 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006637/0.8566, allocations: 3.668 MB / 0.5664 GB, free: 90.17 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01554/0.8722, allocations: 8.904 MB / 0.5751 GB, free: 85.44 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.225e-05/0.8723, allocations: 67.58 kB / 0.5752 GB, free: 85.38 MB / 462.1 MB Notification: Performance of pre-optimization done (n=259): time 5.09e-06/0.8723, allocations: 0 / 0.5752 GB, free: 85.38 MB / 462.1 MB Notification: Performance of matching and sorting (n=265): time 0.02645/0.8988, allocations: 11.79 MB / 0.5867 GB, free: 78.58 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.395e-05/0.8989, allocations: 77.09 kB / 0.5868 GB, free: 78.51 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00574/0.9046, allocations: 3.413 MB / 0.5901 GB, free: 75.97 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005763/0.9052, allocations: 73.7 kB / 0.5902 GB, free: 75.89 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002056/0.9073, allocations: 3.146 MB / 0.5932 GB, free: 73.13 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001039/0.9084, allocations: 0.9632 MB / 0.5942 GB, free: 72.18 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001014/0.9094, allocations: 0.5898 MB / 0.5947 GB, free: 71.58 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.773e-05/0.9095, allocations: 305.1 kB / 0.595 GB, free: 71.28 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002102/0.9116, allocations: 1.447 MB / 0.5965 GB, free: 69.83 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002413/0.914, allocations: 2.493 MB / 0.5989 GB, free: 66.88 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00482/0.9188, allocations: 4.192 MB / 0.603 GB, free: 62.21 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.817e-05/0.9189, allocations: 8 kB / 0.603 GB, free: 62.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.008117/0.927, allocations: 5.034 MB / 0.6079 GB, free: 57.08 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.302e-05/0.9271, allocations: 16 kB / 0.6079 GB, free: 57.07 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.475e-05/0.9272, allocations: 32 kB / 0.6079 GB, free: 57.04 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001363/0.9285, allocations: 0.5743 MB / 0.6085 GB, free: 56.45 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003084/0.9316, allocations: 0.78 MB / 0.6093 GB, free: 55.66 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007144/0.9388, allocations: 9.463 MB / 0.6185 GB, free: 45.66 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003554/0.9424, allocations: 167.9 kB / 0.6187 GB, free: 45.49 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005834/0.943, allocations: 148 kB / 0.6188 GB, free: 45.35 MB / 462.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 (406): * Single equations (assignments): 400 * 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,8,100.0%), (1,1,100.0%), (3,16,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005531/0.9486, allocations: 2.078 MB / 0.6208 GB, free: 43.26 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001379/0.95, allocations: 389.6 kB / 0.6212 GB, free: 42.88 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.012/0.962, allocations: 4.549 MB / 0.6257 GB, free: 38.21 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.57e-05/0.9621, allocations: 24 kB / 0.6257 GB, free: 38.19 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.399e-05/0.9622, allocations: 16 kB / 0.6257 GB, free: 38.17 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.76e-05/0.9622, allocations: 15.94 kB / 0.6257 GB, free: 38.16 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0267/0.9889, allocations: 10.35 MB / 0.6358 GB, free: 27.64 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.882e-05/0.989, allocations: 4 kB / 0.6358 GB, free: 27.64 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002706/0.9918, allocations: 403.8 kB / 0.6362 GB, free: 27.25 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003643/0.9954, allocations: 1.04 MB / 0.6372 GB, free: 26.19 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004768/0.996, allocations: 79.97 kB / 0.6373 GB, free: 26.11 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02581/1.022, allocations: 18.82 MB / 0.6557 GB, free: 6.328 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.736e-06/1.022, allocations: 4 kB / 0.6557 GB, free: 6.324 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01726/1.039, allocations: 6.465 MB / 0.662 GB, free: 15.65 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003659/1.043, allocations: 0.7834 MB / 0.6628 GB, free: 14.85 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001863/1.045, allocations: 59.98 kB / 0.6628 GB, free: 14.79 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004254/1.049, allocations: 131.9 kB / 0.6629 GB, free: 14.66 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001153/1.05, allocations: 205.7 kB / 0.6631 GB, free: 14.46 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006178/1.051, allocations: 79.97 kB / 0.6632 GB, free: 14.38 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.008067/1.059, allocations: 2.315 MB / 0.6655 GB, free: 12.08 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.423e-06/1.059, allocations: 0 / 0.6655 GB, free: 12.08 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.009232/1.068, allocations: 1.16 MB / 0.6666 GB, free: 10.92 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 (195): * Single equations (assignments): 188 * 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,8,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.0208/1.089, allocations: 7.123 MB / 0.6736 GB, free: 3.586 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01291/1.102, allocations: 4.3 MB / 0.6778 GB, free: 15.17 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.166e-05/1.102, allocations: 1 kB / 0.6778 GB, free: 15.17 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006717/1.109, allocations: 2.96 MB / 0.6807 GB, free: 12.11 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007019/1.116, allocations: 1.036 MB / 0.6817 GB, free: 11.1 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07693/1.193, allocations: 40.13 MB / 0.7209 GB, free: 1.609 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005573/1.199, allocations: 4.237 MB / 0.725 GB, free: 13.35 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002907/1.201, allocations: 0.8328 MB / 0.7258 GB, free: 12.51 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003848/1.205, allocations: 2.553 MB / 0.7283 GB, free: 9.953 MB / 0.5294 GB Notification: Performance of SimCode: time 9.71e-07/1.205, allocations: 0 / 0.7283 GB, free: 9.953 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3952/1.601, allocations: 101.1 MB / 0.827 GB, free: 111.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.17/19.77, allocations: 9.453 kB / 0.827 GB, free: 111.1 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_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_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/ComparisonPolyphase/SMR_Inverter_Polyphase/SMR_Inverter_Polyphase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches