Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_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.001305/0.001304, allocations: 114.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00136/0.00136, allocations: 209.2 kB / 18.74 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001955/0.001955, allocations: 63.88 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2622, allocations: 50.53 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01387/0.2761, allocations: 10.35 MB / 419.1 MB, free: 7.145 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007422/0.2836, allocations: 3.474 MB / 422.6 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001764/0.2854, allocations: 59.75 kB / 422.6 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002506/0.288, allocations: 0.7792 MB / 423.4 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003235/0.2912, allocations: 0.8346 MB / 424.3 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001505/0.2928, allocations: 431.3 kB / 424.7 MB, free: 1.555 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004037/0.2968, allocations: 2.755 MB / 427.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003708/0.3006, allocations: 2.41 MB / 429.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00273/0.3033, allocations: 1.265 MB / 431.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003904/0.3072, allocations: 1.58 MB / 432.7 MB, free: 9.449 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001181/0.3085, allocations: 336 kB / 433 MB, free: 9.121 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001804/0.3103, allocations: 443.8 kB / 433.5 MB, free: 8.688 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001918/0.3122, allocations: 0.9389 MB / 434.4 MB, free: 7.746 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003448/0.3157, allocations: 1.509 MB / 435.9 MB, free: 6.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007032/0.3228, allocations: 4.418 MB / 440.3 MB, free: 1.797 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.3228, allocations: 0 / 440.3 MB, free: 1.797 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3228, allocations: 0 / 440.3 MB, free: 1.797 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001666/0.323, allocations: 0 / 440.3 MB, free: 1.797 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.008606/0.3316, allocations: 3.132 MB / 443.5 MB, free: 14.6 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.9e-05/0.3317, allocations: 8.031 kB / 443.5 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009906/0.3327, allocations: 325 kB / 443.8 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001488/0.3342, allocations: 331 kB / 444.1 MB, free: 13.94 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003707/0.3379, allocations: 1.638 MB / 445.7 MB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002039/0.3382, allocations: 176.4 kB / 445.9 MB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006751/0.3389, allocations: 216 kB / 446.1 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006617/0.3455, allocations: 2.917 MB / 449 MB, free: 8.852 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.593e-05/0.3456, allocations: 4 kB / 449 MB, free: 8.848 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003588/0.346, allocations: 99.94 kB / 449.1 MB, free: 8.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000147/0.3461, allocations: 116.3 kB / 449.3 MB, free: 8.633 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005398/0.3515, allocations: 2.43 MB / 451.7 MB, free: 6.188 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01747/0.369, allocations: 9.038 MB / 460.7 MB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002996/0.3721, allocations: 1.708 MB / 462.4 MB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001943/0.3741, allocations: 0.9769 MB / 463.4 MB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003389/0.3744, allocations: 211.2 kB / 463.6 MB, free: 9.824 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.414e-05/0.3745, allocations: 43.56 kB / 463.7 MB, free: 9.773 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 3.547e-06/0.3745, allocations: 0 / 463.7 MB, free: 9.773 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01564/0.3901, allocations: 6.597 MB / 470.3 MB, free: 3.016 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.476e-05/0.3902, allocations: 68.34 kB / 470.3 MB, free: 2.938 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003022/0.3933, allocations: 1.57 MB / 471.9 MB, free: 1.359 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001868/0.3935, allocations: 49.7 kB / 471.9 MB, free: 1.305 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009394/0.3944, allocations: 1.138 MB / 473.1 MB, free: 156 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005389/0.395, allocations: 456.1 kB / 473.5 MB, free: 15.7 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005284/0.3955, allocations: 271.5 kB / 473.8 MB, free: 15.43 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.3957, allocations: 301.1 kB / 474.1 MB, free: 15.13 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00135/0.397, allocations: 0.7183 MB / 474.8 MB, free: 14.41 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002103/0.3991, allocations: 1.134 MB / 475.9 MB, free: 13.1 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004915/0.4041, allocations: 1.967 MB / 477.9 MB, free: 10.95 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-05/0.4041, allocations: 4 kB / 477.9 MB, free: 10.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.007653/0.4118, allocations: 2.527 MB / 480.4 MB, free: 8.379 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.872e-05/0.4119, allocations: 12 kB / 480.4 MB, free: 8.367 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.513e-05/0.4119, allocations: 12 kB / 480.5 MB, free: 8.355 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001706/0.4136, allocations: 434.4 kB / 480.9 MB, free: 7.922 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002347/0.416, allocations: 351.5 kB / 481.2 MB, free: 7.578 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008633/0.4247, allocations: 7.128 MB / 488.4 MB, free: 36 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001525/0.4262, allocations: 107.8 kB / 488.5 MB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002312/0.4265, allocations: 71.92 kB / 488.5 MB, free: 15.86 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001652/0.4281, allocations: 0.7159 MB / 489.2 MB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005688/0.4287, allocations: 178.9 kB / 489.4 MB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004612/0.4333, allocations: 2.19 MB / 491.6 MB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.618e-05/0.4334, allocations: 12 kB / 491.6 MB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.581e-05/0.4334, allocations: 7.938 kB / 491.6 MB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.336e-05/0.4334, allocations: 7.984 kB / 491.6 MB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00969/0.4431, allocations: 4.776 MB / 496.4 MB, free: 7.773 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.068e-05/0.4432, allocations: 4 kB / 496.4 MB, free: 7.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001008/0.4442, allocations: 223.7 kB / 496.6 MB, free: 7.551 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001232/0.4454, allocations: 457.8 kB / 497.1 MB, free: 7.094 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001217/0.4456, allocations: 35.98 kB / 497.1 MB, free: 7.059 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009729/0.4553, allocations: 8.698 MB / 0.494 GB, free: 13.79 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.4553, allocations: 4 kB / 0.494 GB, free: 13.79 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00598/0.4613, allocations: 3.231 MB / 0.4971 GB, free: 10.46 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001064/0.4624, allocations: 415.7 kB / 0.4975 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004379/0.4629, allocations: 31.98 kB / 0.4975 GB, free: 10.01 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/0.464, allocations: 83.91 kB / 0.4976 GB, free: 9.926 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002669/0.4643, allocations: 100.8 kB / 0.4977 GB, free: 9.828 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.314e-05/0.4644, allocations: 35.98 kB / 0.4978 GB, free: 9.793 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002011/0.4664, allocations: 1.067 MB / 0.4988 GB, free: 8.73 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4665, allocations: 4 kB / 0.4988 GB, free: 8.727 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002047/0.4685, allocations: 496.1 kB / 0.4993 GB, free: 8.242 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.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 (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006569/0.4751, allocations: 3.863 MB / 0.503 GB, free: 4.277 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004351/0.4795, allocations: 2.305 MB / 0.5053 GB, free: 1.91 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/0.4795, allocations: 0 / 0.5053 GB, free: 1.91 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002675/0.4822, allocations: 1.478 MB / 0.5067 GB, free: 388 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002946/0.4852, allocations: 485.6 kB / 0.5072 GB, free: 15.92 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03745/0.5227, allocations: 17.94 MB / 0.5247 GB, free: 13.23 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002588/0.5253, allocations: 1.871 MB / 0.5265 GB, free: 11.33 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001481/0.5268, allocations: 386.9 kB / 0.5269 GB, free: 10.95 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001452/0.5283, allocations: 0.882 MB / 0.5278 GB, free: 10.07 MB / 462.1 MB Notification: Performance of SimCode: time 1.042e-06/0.5283, allocations: 0 / 0.5278 GB, free: 10.07 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3023/0.8306, allocations: 45.2 MB / 0.5719 GB, free: 102.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.57/14.4, allocations: 8.422 kB / 0.5719 GB, free: 102.4 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.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_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches