Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.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.SMPM_Inverter,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001625/0.001625, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00211/0.00211, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 64.14 kB / 307.1 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1069, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.2092/0.3162, allocations: 22.37 MB / 380 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01426/0.3305, allocations: 6.665 MB / 386.6 MB, free: 5.707 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005859/0.3364, allocations: 143.2 kB / 386.8 MB, free: 5.672 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005308/0.3417, allocations: 1.501 MB / 388.3 MB, free: 4.844 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008043/0.3498, allocations: 2.038 MB / 390.3 MB, free: 3.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00448/0.3543, allocations: 1.333 MB / 391.6 MB, free: 2.664 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009695/0.364, allocations: 6.541 MB / 398.2 MB, free: 15.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008048/0.3721, allocations: 5.597 MB / 403.8 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004745/0.3769, allocations: 2.993 MB / 406.8 MB, free: 10.82 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006131/0.3831, allocations: 3.661 MB / 410.4 MB, free: 7.406 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001861/0.3849, allocations: 0.8164 MB / 411.3 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004054/0.389, allocations: 1.136 MB / 412.4 MB, free: 5.453 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002497/0.3915, allocations: 2.037 MB / 414.4 MB, free: 3.41 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006197/0.3977, allocations: 3.539 MB / 418 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0118/0.4096, allocations: 10.75 MB / 428.7 MB, free: 5.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.4096, allocations: 0 / 428.7 MB, free: 5.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4096, allocations: 0 / 428.7 MB, free: 5.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003036/0.4099, allocations: 3.938 kB / 428.7 MB, free: 5.066 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.02039/0.4303, allocations: 6.958 MB / 435.7 MB, free: 14.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.4304, allocations: 8.031 kB / 435.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002315/0.4327, allocations: 0.7329 MB / 436.4 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005809/0.4385, allocations: 1.079 MB / 437.5 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007939/0.4465, allocations: 3.652 MB / 441.1 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005004/0.447, allocations: 419 kB / 441.6 MB, free: 8.055 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001755/0.4488, allocations: 0.5272 MB / 442.1 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01783/0.4666, allocations: 7.052 MB / 449.1 MB, free: 412 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002688/0.467, allocations: 15.83 kB / 449.2 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001397/0.4684, allocations: 220 kB / 449.4 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003171/0.4687, allocations: 258.7 kB / 449.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01428/0.483, allocations: 5.944 MB / 455.6 MB, free: 9.965 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04279/0.5258, allocations: 22.6 MB / 478.2 MB, free: 2.758 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01034/0.5362, allocations: 8.55 MB / 486.7 MB, free: 9.27 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004318/0.5406, allocations: 2.285 MB / 489 MB, free: 6.977 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01345/0.5541, allocations: 6.467 MB / 495.5 MB, free: 316 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.718e-05/0.5541, allocations: 60.5 kB / 495.5 MB, free: 248 kB / 398.1 MB Notification: Performance of pre-optimization done (n=220): time 3.817e-06/0.5542, allocations: 0 / 495.5 MB, free: 248 kB / 398.1 MB Notification: Performance of matching and sorting (n=240): time 0.02465/0.5788, allocations: 11.09 MB / 0.4947 GB, free: 4.918 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.072e-05/0.5789, allocations: 81.34 kB / 0.4948 GB, free: 4.824 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006152/0.5851, allocations: 3.181 MB / 0.4979 GB, free: 1.645 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003258/0.5854, allocations: 61.7 kB / 0.498 GB, free: 1.578 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001922/0.5874, allocations: 2.51 MB / 0.5004 GB, free: 15.03 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009367/0.5883, allocations: 0.8241 MB / 0.5012 GB, free: 14.2 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001123/0.5895, allocations: 0.5575 MB / 0.5018 GB, free: 13.63 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.5896, allocations: 301.1 kB / 0.5021 GB, free: 13.33 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00236/0.5919, allocations: 1.341 MB / 0.5034 GB, free: 11.99 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003142/0.5951, allocations: 2.331 MB / 0.5057 GB, free: 9.211 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005988/0.6011, allocations: 3.924 MB / 0.5095 GB, free: 4.812 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-05/0.6012, allocations: 12 kB / 0.5095 GB, free: 4.801 MB / 430.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.00989/0.6111, allocations: 4.717 MB / 0.5141 GB, free: 15.97 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.626e-05/0.6112, allocations: 24.59 kB / 0.5141 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.228e-05/0.6112, allocations: 28 kB / 0.5142 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001324/0.6126, allocations: 0.5585 MB / 0.5147 GB, free: 15.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002937/0.6155, allocations: 0.7332 MB / 0.5154 GB, free: 14.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01017/0.6257, allocations: 10.46 MB / 0.5256 GB, free: 3.449 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003233/0.629, allocations: 187.7 kB / 0.5258 GB, free: 3.266 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005224/0.6295, allocations: 144 kB / 0.526 GB, free: 3.125 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 (377): * Single equations (assignments): 370 * 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,6,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.003477/0.633, allocations: 1.574 MB / 0.5275 GB, free: 1.539 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001042/0.6341, allocations: 347.7 kB / 0.5278 GB, free: 1.195 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1771/0.8112, allocations: 4.072 MB / 0.5318 GB, free: 138.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.088e-05/0.8113, allocations: 22.91 kB / 0.5318 GB, free: 138.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.837e-05/0.8113, allocations: 9.594 kB / 0.5318 GB, free: 138.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.718e-05/0.8113, allocations: 12.19 kB / 0.5318 GB, free: 138.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01603/0.8273, allocations: 9.009 MB / 0.5406 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-05/0.8274, allocations: 4.656 kB / 0.5406 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001902/0.8293, allocations: 410.4 kB / 0.541 GB, free: 134.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001924/0.8312, allocations: 0.7683 MB / 0.5418 GB, free: 134.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001971/0.8314, allocations: 65.77 kB / 0.5418 GB, free: 134.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.012/0.8435, allocations: 16.9 MB / 0.5584 GB, free: 120.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.8435, allocations: 4.469 kB / 0.5584 GB, free: 120.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007769/0.8513, allocations: 5.868 MB / 0.5641 GB, free: 117.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001418/0.8527, allocations: 0.6902 MB / 0.5648 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004701/0.8532, allocations: 63.5 kB / 0.5648 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001572/0.8548, allocations: 140.1 kB / 0.565 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003699/0.8552, allocations: 183.1 kB / 0.5651 GB, free: 117.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001266/0.8553, allocations: 66.75 kB / 0.5652 GB, free: 117.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002749/0.858, allocations: 2.141 MB / 0.5673 GB, free: 116.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.8581, allocations: 3.938 kB / 0.5673 GB, free: 116.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002875/0.8609, allocations: 1.005 MB / 0.5683 GB, free: 116.3 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 (198): * Single equations (assignments): 190 * 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,6,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.007569/0.8685, allocations: 6.583 MB / 0.5747 GB, free: 113.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009227/0.8778, allocations: 5.711 MB / 0.5803 GB, free: 107.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/0.8778, allocations: 8 kB / 0.5803 GB, free: 107.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003289/0.8811, allocations: 2.751 MB / 0.583 GB, free: 105 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004268/0.8854, allocations: 0.9777 MB / 0.5839 GB, free: 104.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04339/0.9288, allocations: 43.22 MB / 0.6261 GB, free: 56.44 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0025/0.9313, allocations: 3.422 MB / 0.6295 GB, free: 52.99 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002593/0.9339, allocations: 0.8133 MB / 0.6303 GB, free: 52.18 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002341/0.9363, allocations: 2.112 MB / 0.6323 GB, free: 50.06 MB / 446.1 MB Notification: Performance of SimCode: time 1.663e-06/0.9363, allocations: 0 / 0.6323 GB, free: 50.06 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3432/1.279, allocations: 89.81 MB / 0.72 GB, free: 144.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/12.62, allocations: 4.312 kB / 0.72 GB, free: 144.8 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches