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.001355/0.001355, allocations: 104 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.001287/0.001287, allocations: 195.9 kB / 18.51 MB, free: 4.496 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.423/1.423, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.002712/0.002712, allocations: 60.14 kB / 280.8 MB, free: 3.059 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1147, allocations: 46.62 MB / 327.4 MB, free: 4.363 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01308/0.1279, allocations: 10.26 MB / 337.7 MB, free: 10.04 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006868/0.1348, allocations: 3.483 MB / 341.1 MB, free: 6.543 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001277/0.1361, allocations: 47.81 kB / 341.2 MB, free: 6.496 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001869/0.138, allocations: 0.7645 MB / 342 MB, free: 5.727 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002403/0.1405, allocations: 0.8385 MB / 342.8 MB, free: 4.883 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009455/0.1414, allocations: 423.4 kB / 343.2 MB, free: 4.469 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003429/0.1449, allocations: 2.747 MB / 346 MB, free: 1.711 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003313/0.1482, allocations: 2.37 MB / 348.3 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002033/0.1503, allocations: 1.242 MB / 349.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002333/0.1526, allocations: 1.584 MB / 351.1 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000571/0.1532, allocations: 332 kB / 351.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009387/0.1541, allocations: 435.8 kB / 351.9 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009761/0.1551, allocations: 0.9389 MB / 352.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001743/0.1569, allocations: 1.513 MB / 354.3 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00462/0.1615, allocations: 4.323 MB / 358.7 MB, free: 4.895 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.1616, allocations: 0 / 358.7 MB, free: 4.895 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1616, allocations: 0 / 358.7 MB, free: 4.895 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001207/0.1617, allocations: 0 / 358.7 MB, free: 4.895 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.007686/0.1694, allocations: 3.045 MB / 361.7 MB, free: 1.785 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.1695, allocations: 8.031 kB / 361.7 MB, free: 1.777 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005146/0.17, allocations: 332.9 kB / 362 MB, free: 1.441 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008884/0.1709, allocations: 309.4 kB / 362.4 MB, free: 1.137 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002711/0.1736, allocations: 1.512 MB / 363.9 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001781/0.1738, allocations: 176.4 kB / 364 MB, free: 15.39 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003705/0.1742, allocations: 228 kB / 364.3 MB, free: 15.17 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005179/0.1794, allocations: 2.905 MB / 367.2 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.998e-05/0.1794, allocations: 7.906 kB / 367.2 MB, free: 12.17 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002145/0.1797, allocations: 95.94 kB / 367.3 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001375/0.1798, allocations: 112.3 kB / 367.4 MB, free: 11.96 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004438/0.1843, allocations: 2.433 MB / 369.8 MB, free: 9.512 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01465/0.1989, allocations: 9.117 MB / 378.9 MB, free: 112 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1448/0.3438, allocations: 1.697 MB / 380.6 MB, free: 50.68 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00185/0.3457, allocations: 0.9864 MB / 381.6 MB, free: 50.6 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002505/0.3459, allocations: 208.6 kB / 381.8 MB, free: 50.41 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.47e-05/0.346, allocations: 47.97 kB / 381.9 MB, free: 50.36 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 2.975e-06/0.346, allocations: 0 / 381.9 MB, free: 50.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01384/0.3598, allocations: 6.524 MB / 388.4 MB, free: 47.88 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.785e-05/0.3599, allocations: 64.56 kB / 388.4 MB, free: 47.82 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002921/0.3628, allocations: 1.571 MB / 390 MB, free: 47.21 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001543/0.363, allocations: 46.27 kB / 390.1 MB, free: 47.16 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000896/0.3639, allocations: 1.106 MB / 391.2 MB, free: 46.3 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003351/0.3643, allocations: 426.9 kB / 391.6 MB, free: 45.98 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003921/0.3647, allocations: 274.2 kB / 391.9 MB, free: 45.85 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.528e-05/0.3647, allocations: 309.1 kB / 392.2 MB, free: 45.55 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009784/0.3657, allocations: 0.7046 MB / 392.9 MB, free: 45.31 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001229/0.367, allocations: 1.14 MB / 394 MB, free: 44.52 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002436/0.3694, allocations: 1.969 MB / 396 MB, free: 43.34 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.277e-06/0.3694, allocations: 4.125 kB / 396 MB, free: 43.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.003611/0.373, allocations: 2.508 MB / 398.5 MB, free: 42.29 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.316e-05/0.3731, allocations: 13.59 kB / 398.5 MB, free: 42.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/0.3731, allocations: 15.3 kB / 398.5 MB, free: 42.29 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008544/0.374, allocations: 432.2 kB / 398.9 MB, free: 42.15 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001191/0.3752, allocations: 346.9 kB / 399.3 MB, free: 42.12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005049/0.3802, allocations: 7.136 MB / 406.4 MB, free: 35.7 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001423/0.3817, allocations: 111.7 kB / 406.5 MB, free: 35.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001032/0.3818, allocations: 67.98 kB / 406.6 MB, free: 35.53 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.0009754/0.3828, allocations: 0.7127 MB / 407.3 MB, free: 34.8 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002576/0.383, allocations: 173.8 kB / 407.5 MB, free: 34.63 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003125/0.3862, allocations: 2.186 MB / 409.7 MB, free: 32.41 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.3862, allocations: 19.94 kB / 409.7 MB, free: 32.39 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.3862, allocations: 4 kB / 409.7 MB, free: 32.38 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.233e-05/0.3862, allocations: 9 kB / 409.7 MB, free: 32.38 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006302/0.3925, allocations: 4.791 MB / 414.5 MB, free: 27.47 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.307e-06/0.3926, allocations: 5.562 kB / 414.5 MB, free: 27.47 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000849/0.3934, allocations: 219.7 kB / 414.7 MB, free: 27.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009895/0.3944, allocations: 455.9 kB / 415.1 MB, free: 26.8 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.042e-05/0.3945, allocations: 35.97 kB / 415.2 MB, free: 26.76 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00578/0.4003, allocations: 8.676 MB / 423.9 MB, free: 17.54 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.4003, allocations: 9.188 kB / 423.9 MB, free: 17.54 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004035/0.4044, allocations: 3.212 MB / 427.1 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008106/0.4052, allocations: 402.9 kB / 427.5 MB, free: 13.82 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002628/0.4055, allocations: 28 kB / 427.5 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009401/0.4064, allocations: 91.89 kB / 427.6 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000231/0.4067, allocations: 96.75 kB / 427.7 MB, free: 13.6 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.176e-05/0.4068, allocations: 43.98 kB / 427.7 MB, free: 13.56 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001349/0.4081, allocations: 1.066 MB / 428.8 MB, free: 12.5 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4081, allocations: 0 / 428.8 MB, free: 12.5 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001561/0.4097, allocations: 490.8 kB / 429.3 MB, free: 12.02 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.00419/0.4139, allocations: 3.865 MB / 433.1 MB, free: 8.051 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004041/0.4179, allocations: 2.78 MB / 435.9 MB, free: 5.227 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.418, allocations: 384 / 435.9 MB, free: 5.227 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001894/0.4199, allocations: 1.487 MB / 437.4 MB, free: 3.691 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002123/0.422, allocations: 484.1 kB / 437.9 MB, free: 3.219 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02908/0.4511, allocations: 19.65 MB / 457.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001818/0.453, allocations: 1.875 MB / 459.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00129/0.4543, allocations: 390.8 kB / 459.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001203/0.4555, allocations: 0.8742 MB / 460.6 MB, free: 10.94 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4555, allocations: 0 / 460.6 MB, free: 10.94 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1001/0.5556, allocations: 44.21 MB / 0.493 GB, free: 14.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.49, allocations: 8.047 kB / 0.493 GB, free: 14.58 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