Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009114/0.0009114, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001/0.001, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8982/0.8982, allocations: 173.3 MB / 200.4 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.201e-05/1.36e-05, allocations: 2.281 kB / 318.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.007221/0.007235, allocations: 9.1 MB / 327.5 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003834/0.01107, allocations: 3.24 MB / 330.8 MB, free: 9.945 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005328/0.0116, allocations: 71.5 kB / 330.9 MB, free: 9.875 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009919/0.01259, allocations: 0.7801 MB / 331.6 MB, free: 9.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001171/0.01377, allocations: 0.9234 MB / 332.6 MB, free: 8.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000438/0.0142, allocations: 423.3 kB / 333 MB, free: 7.746 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001983/0.01619, allocations: 2.847 MB / 335.8 MB, free: 4.887 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00107/0.01726, allocations: 1.301 MB / 337.1 MB, free: 3.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001367/0.01862, allocations: 1.887 MB / 339 MB, free: 1.629 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001173/0.0198, allocations: 1.352 MB / 340.4 MB, free: 276 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002723/0.02007, allocations: 336 kB / 340.7 MB, free: 15.94 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004409/0.02051, allocations: 443.6 kB / 341.1 MB, free: 15.51 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005568/0.02107, allocations: 0.9699 MB / 342.1 MB, free: 14.54 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001002/0.02207, allocations: 1.025 MB / 343.1 MB, free: 13.51 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002546/0.02461, allocations: 4.444 MB / 347.6 MB, free: 9.051 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.02462, allocations: 0 / 347.6 MB, free: 9.051 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.02462, allocations: 0 / 347.6 MB, free: 9.051 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.813e-05/0.02466, allocations: 0 / 347.6 MB, free: 9.051 MB / 314.7 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.003513/0.02817, allocations: 3.03 MB / 350.6 MB, free: 5.973 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.02822, allocations: 8.922 kB / 350.6 MB, free: 5.965 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002833/0.0285, allocations: 324.9 kB / 350.9 MB, free: 5.637 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004656/0.02896, allocations: 331.1 kB / 351.2 MB, free: 5.312 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001716/0.03068, allocations: 1.55 MB / 352.8 MB, free: 3.723 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.303e-05/0.03076, allocations: 172.8 kB / 353 MB, free: 3.551 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002107/0.03097, allocations: 224.1 kB / 353.2 MB, free: 3.332 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003041/0.03402, allocations: 3.021 MB / 356.2 MB, free: 204 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.062e-05/0.03406, allocations: 4 kB / 356.2 MB, free: 200 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001391/0.03419, allocations: 88 kB / 356.3 MB, free: 112 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.165e-05/0.03429, allocations: 120.4 kB / 356.4 MB, free: 15.98 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002778/0.03706, allocations: 2.426 MB / 358.8 MB, free: 13.55 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008098/0.04516, allocations: 8.167 MB / 367 MB, free: 5.102 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001338/0.0465, allocations: 1.178 MB / 368.2 MB, free: 3.91 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001041/0.04754, allocations: 0.921 MB / 369.1 MB, free: 2.988 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001581/0.0477, allocations: 52.89 kB / 369.2 MB, free: 2.938 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.852e-05/0.04773, allocations: 51.5 kB / 369.2 MB, free: 2.875 MB / 330.7 MB Notification: Performance of pre-optimization done (n=105): time 2.425e-06/0.04773, allocations: 0 / 369.2 MB, free: 2.875 MB / 330.7 MB Notification: Performance of matching and sorting (n=122): time 0.007913/0.05564, allocations: 6.044 MB / 375.2 MB, free: 12.8 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.711e-05/0.05568, allocations: 68.41 kB / 375.3 MB, free: 12.73 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001369/0.05705, allocations: 1.592 MB / 376.9 MB, free: 11.12 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.734e-05/0.05711, allocations: 45.7 kB / 376.9 MB, free: 11.07 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005432/0.05765, allocations: 1.142 MB / 378.1 MB, free: 9.922 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002395/0.05789, allocations: 440.2 kB / 378.5 MB, free: 9.488 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000442/0.05833, allocations: 271.5 kB / 378.8 MB, free: 9.219 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.566e-05/0.05841, allocations: 301.1 kB / 379.1 MB, free: 8.922 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007341/0.05914, allocations: 0.7105 MB / 379.8 MB, free: 8.211 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008995/0.06004, allocations: 1.142 MB / 380.9 MB, free: 6.883 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001704/0.06175, allocations: 1.967 MB / 382.9 MB, free: 4.734 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.139e-06/0.06175, allocations: 4 kB / 382.9 MB, free: 4.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.002456/0.06421, allocations: 2.452 MB / 385.4 MB, free: 2.258 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.06423, allocations: 8 kB / 385.4 MB, free: 2.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.606e-05/0.06424, allocations: 27.91 kB / 385.4 MB, free: 2.223 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006968/0.06494, allocations: 418.6 kB / 385.8 MB, free: 1.805 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006624/0.0656, allocations: 355.4 kB / 386.1 MB, free: 1.457 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004301/0.0699, allocations: 6.765 MB / 392.9 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006361/0.07054, allocations: 107.9 kB / 393 MB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.379e-05/0.07061, allocations: 67.97 kB / 393.1 MB, free: 10.18 MB / 362.7 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.0008123/0.07142, allocations: 0.7247 MB / 393.8 MB, free: 9.445 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001669/0.07159, allocations: 174.9 kB / 394 MB, free: 9.273 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002254/0.07385, allocations: 2.107 MB / 396.1 MB, free: 7.137 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.595e-06/0.07385, allocations: 15.94 kB / 396.1 MB, free: 7.121 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/0.07386, allocations: 4 kB / 396.1 MB, free: 7.117 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.07387, allocations: 3.984 kB / 396.1 MB, free: 7.113 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004796/0.07866, allocations: 4.407 MB / 400.5 MB, free: 2.586 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.261e-06/0.07867, allocations: 7.938 kB / 400.5 MB, free: 2.578 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004928/0.07916, allocations: 224.1 kB / 400.7 MB, free: 2.359 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006303/0.07979, allocations: 454.6 kB / 401.2 MB, free: 1.906 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.922e-05/0.07985, allocations: 35.98 kB / 401.2 MB, free: 1.871 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004878/0.08473, allocations: 8.21 MB / 409.4 MB, free: 9.203 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.08473, allocations: 4 kB / 409.4 MB, free: 9.199 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003021/0.08775, allocations: 3.144 MB / 412.6 MB, free: 5.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004526/0.08821, allocations: 322.7 kB / 412.9 MB, free: 5.664 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001268/0.08833, allocations: 35.98 kB / 412.9 MB, free: 5.629 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004578/0.08879, allocations: 79.91 kB / 413 MB, free: 5.551 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/0.08893, allocations: 104.7 kB / 413.1 MB, free: 5.449 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.957e-05/0.08898, allocations: 47.98 kB / 413.2 MB, free: 5.402 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009774/0.08996, allocations: 1.063 MB / 414.2 MB, free: 4.344 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.08996, allocations: 4 kB / 414.2 MB, free: 4.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00116/0.09112, allocations: 487.9 kB / 414.7 MB, free: 3.863 MB / 378.7 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.003376/0.0945, allocations: 3.765 MB / 418.5 MB, free: 8 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002327/0.09682, allocations: 2.155 MB / 420.6 MB, free: 13.81 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.09683, allocations: 3.938 kB / 420.6 MB, free: 13.8 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001487/0.09832, allocations: 1.423 MB / 422 MB, free: 12.33 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001223/0.09954, allocations: 488.7 kB / 422.5 MB, free: 11.87 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01908/0.1186, allocations: 17.69 MB / 440.2 MB, free: 9.461 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000964/0.1196, allocations: 1.294 MB / 441.5 MB, free: 8.125 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007082/0.1203, allocations: 390.9 kB / 441.9 MB, free: 7.738 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008697/0.1212, allocations: 0.8713 MB / 442.8 MB, free: 6.867 MB / 410.7 MB Notification: Performance of SimCode: time 9.01e-07/0.1212, allocations: 8 kB / 442.8 MB, free: 6.859 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1832/0.3044, allocations: 48.42 MB / 491.2 MB, free: 86.84 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.561/8.865, allocations: 6.047 kB / 491.2 MB, free: 86.84 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia.w in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv failed! Error: Could not read variable smpm.is[1] in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv. Warning: Get data of variable smpm.is[1] from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv failed! Error: Could not read variable smpm.is[2] in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv. Warning: Get data of variable smpm.is[2] from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv failed! Error: Could not read variable vfController.x in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv. Warning: Get data of variable vfController.x from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.070200681686401]