Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_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.001707/0.001707, allocations: 97.98 kB / 17.58 MB, free: 5.418 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.001841/0.001842, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.486/1.486, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001658/0.001658, allocations: 51.94 kB / 280.8 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08733/0.089, allocations: 46.63 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01188/0.1009, allocations: 10.26 MB / 337.7 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007279/0.1083, allocations: 3.486 MB / 341.1 MB, free: 6.551 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001404/0.1097, allocations: 47.81 kB / 341.2 MB, free: 6.504 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001824/0.1116, allocations: 0.7646 MB / 341.9 MB, free: 5.734 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00221/0.1138, allocations: 0.8346 MB / 342.8 MB, free: 4.895 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000912/0.1147, allocations: 431.3 kB / 343.2 MB, free: 4.473 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002609/0.1173, allocations: 2.743 MB / 345.9 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002524/0.1199, allocations: 2.362 MB / 348.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001619/0.1215, allocations: 1.25 MB / 349.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00201/0.1235, allocations: 1.584 MB / 351.1 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004735/0.124, allocations: 336 kB / 351.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008602/0.1249, allocations: 435.8 kB / 351.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009105/0.1258, allocations: 0.9389 MB / 352.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001526/0.1273, allocations: 1.505 MB / 354.3 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003845/0.1312, allocations: 4.323 MB / 358.7 MB, free: 4.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1312, allocations: 0 / 358.7 MB, free: 4.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.1312, allocations: 0 / 358.7 MB, free: 4.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.754e-05/0.1313, allocations: 0 / 358.7 MB, free: 4.91 MB / 302.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.006/0.1373, allocations: 3.053 MB / 361.7 MB, free: 1.793 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.596e-05/0.1374, allocations: 8.031 kB / 361.7 MB, free: 1.785 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004404/0.1378, allocations: 329 kB / 362 MB, free: 1.453 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008445/0.1387, allocations: 309.4 kB / 362.3 MB, free: 1.148 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002477/0.1411, allocations: 1.52 MB / 363.9 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001648/0.1413, allocations: 176.3 kB / 364 MB, free: 15.39 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003109/0.1416, allocations: 220 kB / 364.3 MB, free: 15.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004846/0.1465, allocations: 2.913 MB / 367.2 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.655e-05/0.1466, allocations: 11.91 kB / 367.2 MB, free: 12.17 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002097/0.1468, allocations: 92 kB / 367.3 MB, free: 12.08 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001258/0.1469, allocations: 108.3 kB / 367.4 MB, free: 11.97 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004023/0.151, allocations: 2.433 MB / 369.8 MB, free: 9.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01379/0.1648, allocations: 9.113 MB / 378.9 MB, free: 124 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.162/0.3268, allocations: 1.707 MB / 380.6 MB, free: 50.32 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002283/0.3292, allocations: 0.9813 MB / 381.6 MB, free: 50.31 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003097/0.3295, allocations: 207.1 kB / 381.8 MB, free: 50.12 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.695e-05/0.3295, allocations: 46.39 kB / 381.9 MB, free: 50.08 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 3.336e-06/0.3296, allocations: 0 / 381.9 MB, free: 50.08 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01509/0.3446, allocations: 6.529 MB / 388.4 MB, free: 47.78 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.64e-05/0.3447, allocations: 65.06 kB / 388.5 MB, free: 47.71 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002783/0.3475, allocations: 1.569 MB / 390 MB, free: 47.11 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.334e-05/0.3476, allocations: 46.02 kB / 390.1 MB, free: 47.06 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007138/0.3483, allocations: 1.109 MB / 391.2 MB, free: 46.21 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003238/0.3487, allocations: 427.4 kB / 391.6 MB, free: 45.88 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003963/0.3491, allocations: 280.5 kB / 391.9 MB, free: 45.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.367e-05/0.3491, allocations: 301.1 kB / 392.2 MB, free: 45.45 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001001/0.3501, allocations: 0.7039 MB / 392.9 MB, free: 45.21 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001309/0.3515, allocations: 1.143 MB / 394 MB, free: 44.43 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002459/0.3539, allocations: 1.969 MB / 396 MB, free: 43.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.167e-05/0.354, allocations: 4 kB / 396 MB, free: 43.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.003707/0.3577, allocations: 2.512 MB / 398.5 MB, free: 42.19 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.3577, allocations: 7.938 kB / 398.5 MB, free: 42.19 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.997e-05/0.3577, allocations: 15.81 kB / 398.5 MB, free: 42.19 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008756/0.3586, allocations: 427.3 kB / 398.9 MB, free: 42.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001233/0.3599, allocations: 346.8 kB / 399.3 MB, free: 42.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005273/0.3651, allocations: 7.139 MB / 406.4 MB, free: 35.61 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001318/0.3665, allocations: 111.7 kB / 406.5 MB, free: 35.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/0.3666, allocations: 64 kB / 406.6 MB, free: 35.43 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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.001068/0.3677, allocations: 0.7166 MB / 407.3 MB, free: 34.71 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003935/0.3681, allocations: 173.8 kB / 407.5 MB, free: 34.54 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003185/0.3713, allocations: 2.188 MB / 409.7 MB, free: 32.31 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.3713, allocations: 22.84 kB / 409.7 MB, free: 32.29 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.3713, allocations: 4 kB / 409.7 MB, free: 32.29 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.3713, allocations: 3.984 kB / 409.7 MB, free: 32.28 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006793/0.3781, allocations: 4.789 MB / 414.5 MB, free: 27.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.115e-06/0.3782, allocations: 4 kB / 414.5 MB, free: 27.37 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008905/0.3791, allocations: 223.7 kB / 414.7 MB, free: 27.15 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009866/0.3801, allocations: 455.6 kB / 415.1 MB, free: 26.7 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.021e-05/0.3802, allocations: 31.98 kB / 415.2 MB, free: 26.67 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005888/0.3861, allocations: 8.678 MB / 423.8 MB, free: 17.45 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/0.3861, allocations: 4 kB / 423.9 MB, free: 17.45 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00486/0.3909, allocations: 3.22 MB / 427.1 MB, free: 14.13 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001132/0.3921, allocations: 394.9 kB / 427.5 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005632/0.3927, allocations: 35.98 kB / 427.5 MB, free: 13.69 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00144/0.3941, allocations: 83.91 kB / 427.6 MB, free: 13.61 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002662/0.3944, allocations: 96.75 kB / 427.7 MB, free: 13.51 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001099/0.3945, allocations: 43.98 kB / 427.7 MB, free: 13.47 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002171/0.3967, allocations: 1.07 MB / 428.8 MB, free: 12.41 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.3967, allocations: 0 / 428.8 MB, free: 12.41 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002621/0.3994, allocations: 490.3 kB / 429.3 MB, free: 11.93 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * 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 (108): * Single equations (assignments): 104 * 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.006791/0.4062, allocations: 3.876 MB / 433.1 MB, free: 7.949 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005388/0.4116, allocations: 2.776 MB / 435.9 MB, free: 5.133 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.616e-06/0.4116, allocations: 4.375 kB / 435.9 MB, free: 5.129 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003175/0.4148, allocations: 1.476 MB / 437.4 MB, free: 3.602 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004749/0.4196, allocations: 489.8 kB / 437.9 MB, free: 3.129 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04354/0.4632, allocations: 19.64 MB / 457.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002972/0.4662, allocations: 1.879 MB / 459.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.002158/0.4684, allocations: 382.8 kB / 459.8 MB, free: 11.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001901/0.4703, allocations: 0.8742 MB / 460.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of SimCode: time 1.522e-06/0.4703, allocations: 3.5 kB / 460.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09362/0.564, allocations: 44.22 MB / 0.493 GB, free: 14.5 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.2/10.76, allocations: 8.047 kB / 0.493 GB, free: 14.5 MB / 398.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches