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.001551/0.001552, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002036/0.002036, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.337/1.337, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.2384, allocations: 50.54 MB / 408.8 MB, free: 1.672 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01154/0.2499, allocations: 10.36 MB / 419.1 MB, free: 7.277 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006699/0.2567, allocations: 3.478 MB / 422.6 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001742/0.2585, allocations: 59.75 kB / 422.7 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002524/0.2611, allocations: 0.8232 MB / 423.5 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002918/0.264, allocations: 0.8853 MB / 424.4 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001376/0.2654, allocations: 423.4 kB / 424.8 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003398/0.2688, allocations: 2.755 MB / 427.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003123/0.272, allocations: 2.41 MB / 429.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001901/0.2739, allocations: 1.273 MB / 431.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00242/0.2763, allocations: 1.584 MB / 432.8 MB, free: 9.477 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007989/0.2771, allocations: 336 kB / 433.1 MB, free: 9.148 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001236/0.2784, allocations: 439.8 kB / 433.6 MB, free: 8.719 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001166/0.2796, allocations: 0.9427 MB / 434.5 MB, free: 7.773 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002149/0.2817, allocations: 1.505 MB / 436 MB, free: 6.262 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004989/0.2867, allocations: 4.406 MB / 440.4 MB, free: 1.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.2868, allocations: 3.938 kB / 440.4 MB, free: 1.836 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2868, allocations: 0 / 440.4 MB, free: 1.836 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001365/0.2869, allocations: 0 / 440.4 MB, free: 1.836 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.00733/0.2943, allocations: 3.14 MB / 443.6 MB, free: 14.63 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.2943, allocations: 15.97 kB / 443.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006795/0.295, allocations: 321 kB / 443.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001066/0.2961, allocations: 327 kB / 444.2 MB, free: 13.97 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003379/0.2995, allocations: 1.646 MB / 445.8 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001428/0.2996, allocations: 168.4 kB / 446 MB, free: 12.1 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004971/0.3001, allocations: 223.9 kB / 446.2 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005752/0.3059, allocations: 2.917 MB / 449.1 MB, free: 8.875 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.385e-05/0.306, allocations: 4 kB / 449.2 MB, free: 8.871 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003202/0.3064, allocations: 95.92 kB / 449.2 MB, free: 8.777 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001205/0.3065, allocations: 112.3 kB / 449.4 MB, free: 8.664 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004856/0.3113, allocations: 2.43 MB / 451.8 MB, free: 6.219 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01636/0.3277, allocations: 9.042 MB / 460.8 MB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002545/0.3303, allocations: 1.715 MB / 462.5 MB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001846/0.3322, allocations: 0.9847 MB / 463.5 MB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003108/0.3325, allocations: 199.2 kB / 463.7 MB, free: 9.852 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.785e-05/0.3326, allocations: 47.55 kB / 463.8 MB, free: 9.797 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 3.867e-06/0.3326, allocations: 0 / 463.8 MB, free: 9.797 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01551/0.3481, allocations: 6.598 MB / 470.4 MB, free: 3.035 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.404e-05/0.3482, allocations: 68.34 kB / 470.4 MB, free: 2.957 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002757/0.351, allocations: 1.573 MB / 472 MB, free: 1.375 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000203/0.3512, allocations: 45.7 kB / 472.1 MB, free: 1.324 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008413/0.3521, allocations: 1.134 MB / 473.2 MB, free: 180 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005109/0.3526, allocations: 456.3 kB / 473.6 MB, free: 15.72 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005001/0.3531, allocations: 275.5 kB / 473.9 MB, free: 15.45 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.002e-05/0.3532, allocations: 301.1 kB / 474.2 MB, free: 15.15 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001259/0.3545, allocations: 0.7144 MB / 474.9 MB, free: 14.43 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001482/0.356, allocations: 1.138 MB / 476 MB, free: 13.11 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002808/0.3588, allocations: 1.971 MB / 478 MB, free: 10.96 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.094e-05/0.3588, allocations: 4 kB / 478 MB, free: 10.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004414/0.3632, allocations: 2.531 MB / 480.6 MB, free: 8.391 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.589e-05/0.3633, allocations: 8 kB / 480.6 MB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.423e-05/0.3633, allocations: 16 kB / 480.6 MB, free: 8.367 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009929/0.3643, allocations: 419.1 kB / 481 MB, free: 7.945 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001323/0.3656, allocations: 347.5 kB / 481.3 MB, free: 7.605 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006934/0.3726, allocations: 7.131 MB / 488.5 MB, free: 64 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001455/0.3741, allocations: 111.8 kB / 488.6 MB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001958/0.3743, allocations: 64 kB / 488.6 MB, free: 15.89 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.00128/0.3756, allocations: 0.7121 MB / 489.3 MB, free: 15.17 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004401/0.376, allocations: 182.9 kB / 489.5 MB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003957/0.38, allocations: 2.202 MB / 491.7 MB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.365e-05/0.38, allocations: 16 kB / 491.7 MB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-05/0.3801, allocations: 7.938 kB / 491.7 MB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.416e-05/0.3801, allocations: 7.969 kB / 491.8 MB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008908/0.389, allocations: 4.764 MB / 496.5 MB, free: 7.801 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.341e-05/0.389, allocations: 4 kB / 496.5 MB, free: 7.797 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009941/0.39, allocations: 219.7 kB / 496.7 MB, free: 7.582 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001214/0.3913, allocations: 463.3 kB / 497.2 MB, free: 7.117 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001436/0.3914, allocations: 35.98 kB / 497.2 MB, free: 7.082 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008243/0.3997, allocations: 8.691 MB / 0.4941 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/0.3997, allocations: 11.98 kB / 0.4941 GB, free: 13.81 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005329/0.4051, allocations: 3.223 MB / 0.4972 GB, free: 10.5 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001149/0.4063, allocations: 415.7 kB / 0.4976 GB, free: 10.07 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004893/0.4068, allocations: 28 kB / 0.4976 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001192/0.408, allocations: 87.91 kB / 0.4977 GB, free: 9.957 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002523/0.4082, allocations: 104.7 kB / 0.4978 GB, free: 9.855 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.542e-05/0.4083, allocations: 43.98 kB / 0.4979 GB, free: 9.812 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001854/0.4102, allocations: 1.071 MB / 0.4989 GB, free: 8.746 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4102, allocations: 0 / 0.4989 GB, free: 8.746 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001971/0.4122, allocations: 488.1 kB / 0.4994 GB, free: 8.27 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.005635/0.4178, allocations: 3.86 MB / 0.5031 GB, free: 4.305 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003993/0.4219, allocations: 2.3 MB / 0.5054 GB, free: 1.941 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.575e-06/0.4219, allocations: 5.938 kB / 0.5054 GB, free: 1.938 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002493/0.4244, allocations: 1.477 MB / 0.5068 GB, free: 416 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00277/0.4272, allocations: 486.2 kB / 0.5073 GB, free: 15.94 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03064/0.4579, allocations: 17.94 MB / 0.5248 GB, free: 13.27 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001922/0.4598, allocations: 1.871 MB / 0.5266 GB, free: 11.36 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001282/0.4611, allocations: 390.8 kB / 0.527 GB, free: 10.98 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001239/0.4624, allocations: 0.8819 MB / 0.5279 GB, free: 10.09 MB / 462.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4624, allocations: 0 / 0.5279 GB, free: 10.09 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.261/0.7235, allocations: 45.21 MB / 0.572 GB, free: 102.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.17/12.9, allocations: 11.36 kB / 0.572 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.0.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