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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008319/0.0008319, allocations: 80.34 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008808/0.0008808, allocations: 160.9 kB / 23.95 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8967/0.8967, allocations: 177 MB / 204.1 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.981e-05/2.126e-05, allocations: 3.266 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.00789/0.007911, allocations: 9.157 MB / 333.7 MB, free: 6.695 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004934/0.01285, allocations: 3.306 MB / 337 MB, free: 3.375 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001163/0.01401, allocations: 71.5 kB / 337.1 MB, free: 3.305 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001818/0.01583, allocations: 0.7606 MB / 337.8 MB, free: 2.539 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002113/0.01794, allocations: 0.9274 MB / 338.8 MB, free: 1.605 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007462/0.01869, allocations: 431.2 kB / 339.2 MB, free: 1.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002568/0.02125, allocations: 2.865 MB / 342 MB, free: 14.3 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001443/0.0227, allocations: 1.301 MB / 343.3 MB, free: 12.94 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002412/0.02511, allocations: 1.902 MB / 345.2 MB, free: 11.04 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001938/0.02705, allocations: 1.356 MB / 346.6 MB, free: 9.676 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000731/0.02778, allocations: 336 kB / 346.9 MB, free: 9.348 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008213/0.0286, allocations: 435.8 kB / 347.4 MB, free: 8.922 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001088/0.02969, allocations: 0.9854 MB / 348.3 MB, free: 7.934 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001279/0.03097, allocations: 1.029 MB / 349.4 MB, free: 6.902 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003428/0.03439, allocations: 4.448 MB / 353.8 MB, free: 2.441 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.0344, allocations: 4 kB / 353.8 MB, free: 2.438 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.0344, allocations: 4 kB / 353.8 MB, free: 2.434 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.78e-05/0.03448, allocations: 0 / 353.8 MB, free: 2.434 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.004186/0.03866, allocations: 3.037 MB / 356.9 MB, free: 15.34 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.03871, allocations: 11.98 kB / 356.9 MB, free: 15.33 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000293/0.039, allocations: 328.9 kB / 357.2 MB, free: 15 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005878/0.03959, allocations: 335 kB / 357.5 MB, free: 14.67 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001877/0.04146, allocations: 1.562 MB / 359.1 MB, free: 13.07 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.875e-05/0.04155, allocations: 164.8 kB / 359.2 MB, free: 12.9 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002239/0.04178, allocations: 228.1 kB / 359.5 MB, free: 12.68 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003251/0.04503, allocations: 3.013 MB / 362.5 MB, free: 9.555 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.508e-05/0.04507, allocations: 7.984 kB / 362.5 MB, free: 9.547 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001421/0.04521, allocations: 91.98 kB / 362.6 MB, free: 9.457 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-05/0.0453, allocations: 116.3 kB / 362.7 MB, free: 9.34 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002786/0.04808, allocations: 2.43 MB / 365.1 MB, free: 6.895 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008183/0.05627, allocations: 8.164 MB / 373.3 MB, free: 14.45 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001397/0.05766, allocations: 1.17 MB / 374.5 MB, free: 13.28 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001059/0.05872, allocations: 0.9252 MB / 375.4 MB, free: 12.35 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001535/0.05887, allocations: 56.89 kB / 375.4 MB, free: 12.3 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.935e-05/0.0589, allocations: 47.97 kB / 375.5 MB, free: 12.24 MB / 346.7 MB Notification: Performance of pre-optimization done (n=105): time 2.585e-06/0.05891, allocations: 0 / 375.5 MB, free: 12.24 MB / 346.7 MB Notification: Performance of matching and sorting (n=122): time 0.008352/0.06726, allocations: 6.064 MB / 381.5 MB, free: 6.145 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.608e-05/0.06729, allocations: 64.41 kB / 381.6 MB, free: 6.07 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001772/0.06907, allocations: 1.589 MB / 383.2 MB, free: 4.473 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.875e-05/0.06916, allocations: 45.7 kB / 383.2 MB, free: 4.422 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008696/0.07003, allocations: 1.138 MB / 384.4 MB, free: 3.27 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003731/0.0704, allocations: 440.2 kB / 384.8 MB, free: 2.836 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004381/0.07084, allocations: 275.5 kB / 385.1 MB, free: 2.562 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.651e-05/0.07093, allocations: 305.1 kB / 385.4 MB, free: 2.262 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0012/0.07213, allocations: 0.7105 MB / 386.1 MB, free: 1.551 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001462/0.0736, allocations: 1.134 MB / 387.2 MB, free: 244 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002816/0.07641, allocations: 1.967 MB / 389.2 MB, free: 14.09 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.889e-06/0.07642, allocations: 4 kB / 389.2 MB, free: 14.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004337/0.08076, allocations: 2.452 MB / 391.6 MB, free: 11.61 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.484e-05/0.08079, allocations: 12 kB / 391.7 MB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.508e-05/0.08083, allocations: 15.94 kB / 391.7 MB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008311/0.08166, allocations: 423.4 kB / 392.1 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007137/0.08237, allocations: 347.4 kB / 392.4 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004789/0.08716, allocations: 6.768 MB / 399.2 MB, free: 3.703 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007354/0.0879, allocations: 103.8 kB / 399.3 MB, free: 3.602 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.67e-05/0.08797, allocations: 60 kB / 399.4 MB, free: 3.543 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.0009983/0.08897, allocations: 0.7241 MB / 400.1 MB, free: 2.809 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002338/0.08921, allocations: 182.8 kB / 400.3 MB, free: 2.629 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002432/0.09164, allocations: 2.107 MB / 402.4 MB, free: 0.5 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.603e-06/0.09164, allocations: 12 kB / 402.4 MB, free: 500 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.09165, allocations: 8 kB / 402.4 MB, free: 492 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.798e-06/0.09166, allocations: 7.969 kB / 402.4 MB, free: 484 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004838/0.0965, allocations: 4.415 MB / 406.8 MB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.563e-06/0.09651, allocations: 7.938 kB / 406.8 MB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004947/0.097, allocations: 219.7 kB / 407 MB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006672/0.09767, allocations: 456.2 kB / 407.5 MB, free: 11.25 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-05/0.09774, allocations: 35.98 kB / 407.5 MB, free: 11.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004971/0.1027, allocations: 8.214 MB / 415.7 MB, free: 2.555 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.1027, allocations: 4 kB / 415.7 MB, free: 2.551 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003067/0.1058, allocations: 3.132 MB / 418.9 MB, free: 15.35 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004688/0.1062, allocations: 326.7 kB / 419.2 MB, free: 15.03 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001316/0.1064, allocations: 39.98 kB / 419.2 MB, free: 14.99 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004659/0.1068, allocations: 79.91 kB / 419.3 MB, free: 14.91 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001686/0.107, allocations: 104.7 kB / 419.4 MB, free: 14.81 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.845e-05/0.1071, allocations: 43.92 kB / 419.4 MB, free: 14.77 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001071/0.1081, allocations: 1.071 MB / 420.5 MB, free: 13.7 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1081, allocations: 0 / 420.5 MB, free: 13.7 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001086/0.1092, allocations: 487.9 kB / 421 MB, free: 13.22 MB / 394.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.003448/0.1127, allocations: 3.769 MB / 424.8 MB, free: 9.363 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002405/0.1151, allocations: 2.156 MB / 426.9 MB, free: 7.164 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1151, allocations: 0 / 426.9 MB, free: 7.164 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001368/0.1164, allocations: 1.426 MB / 428.3 MB, free: 5.688 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001254/0.1177, allocations: 481 kB / 428.8 MB, free: 5.23 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01987/0.1376, allocations: 17.72 MB / 446.5 MB, free: 2.793 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001137/0.1387, allocations: 1.302 MB / 447.8 MB, free: 1.449 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007136/0.1394, allocations: 394.8 kB / 448.2 MB, free: 1.059 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007642/0.1402, allocations: 0.8791 MB / 449.1 MB, free: 184 kB / 410.7 MB Notification: Performance of SimCode: time 6.31e-07/0.1402, allocations: 0 / 449.1 MB, free: 184 kB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1824/0.3225, allocations: 48.55 MB / 497.6 MB, free: 74.48 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.497/8.819, allocations: 8 kB / 497.6 MB, free: 74.48 MB / 410.7 MB " [Timeout remaining time 651] (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) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv failed! Error: Could not read variable smpm.is[1] in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv. Warning: Get data of variable smpm.is[1] from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv failed! Error: Could not read variable smpm.is[2] in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv. Warning: Get data of variable smpm.is[2] from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv failed! Error: Could not read variable vfController.x in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv. Warning: Get data of variable vfController.x from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.960423457436264]