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.001496/0.001496, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 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.001842/0.001842, allocations: 213.6 kB / 23.73 MB, free: 4.164 MB / 14.72 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 1.475/1.475, allocations: 230.5 MB / 257.4 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001928/0.001928, allocations: 67.89 kB / 377.7 MB, free: 2.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.234, allocations: 53.41 MB / 431.2 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.0124/0.2464, allocations: 9.148 MB / 440.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006707/0.2532, allocations: 3.283 MB / 443.6 MB, free: 9.973 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001361/0.2545, allocations: 75.5 kB / 443.7 MB, free: 9.898 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002068/0.2566, allocations: 0.757 MB / 444.4 MB, free: 9.137 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00286/0.2594, allocations: 0.8893 MB / 445.3 MB, free: 8.242 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00101/0.2605, allocations: 431.3 kB / 445.7 MB, free: 7.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003479/0.2639, allocations: 2.77 MB / 448.5 MB, free: 5.043 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001925/0.2659, allocations: 1.309 MB / 449.8 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002058/0.2679, allocations: 1.304 MB / 451.1 MB, free: 2.355 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002589/0.2705, allocations: 1.514 MB / 452.6 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005929/0.2711, allocations: 336 kB / 452.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009424/0.272, allocations: 443.8 kB / 453.4 MB, free: 76 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001018/0.2731, allocations: 0.9466 MB / 454.3 MB, free: 15.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001484/0.2745, allocations: 1.221 MB / 455.5 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004967/0.2795, allocations: 4.433 MB / 460 MB, free: 9.449 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2795, allocations: 0 / 460 MB, free: 9.449 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2795, allocations: 4 kB / 460 MB, free: 9.445 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.489e-05/0.2796, allocations: 0 / 460 MB, free: 9.445 MB / 366.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.006206/0.2858, allocations: 3.057 MB / 463 MB, free: 6.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.2858, allocations: 15.98 kB / 463.1 MB, free: 6.324 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004554/0.2863, allocations: 324.9 kB / 463.4 MB, free: 5.996 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008694/0.2872, allocations: 331 kB / 463.7 MB, free: 5.672 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003097/0.2903, allocations: 1.562 MB / 465.3 MB, free: 4.07 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001579/0.2904, allocations: 164.4 kB / 465.4 MB, free: 3.906 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003934/0.2908, allocations: 227.9 kB / 465.6 MB, free: 3.684 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005296/0.2961, allocations: 3.017 MB / 468.7 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.073e-05/0.2962, allocations: 8 kB / 468.7 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002036/0.2964, allocations: 87.98 kB / 468.8 MB, free: 472 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000128/0.2965, allocations: 112.3 kB / 468.9 MB, free: 356 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004468/0.301, allocations: 2.434 MB / 471.3 MB, free: 13.89 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01361/0.3146, allocations: 8.159 MB / 479.5 MB, free: 5.461 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00217/0.3168, allocations: 1.186 MB / 480.6 MB, free: 4.273 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001752/0.3185, allocations: 0.9176 MB / 481.6 MB, free: 3.359 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002107/0.3187, allocations: 48.97 kB / 481.6 MB, free: 3.312 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.472e-05/0.3188, allocations: 43.56 kB / 481.7 MB, free: 3.258 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 2.836e-06/0.3188, allocations: 0 / 481.7 MB, free: 3.258 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01395/0.3327, allocations: 6.07 MB / 487.7 MB, free: 13.16 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.821e-05/0.3328, allocations: 64.41 kB / 487.8 MB, free: 13.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002329/0.3351, allocations: 1.597 MB / 489.4 MB, free: 11.48 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001228/0.3352, allocations: 45.7 kB / 489.4 MB, free: 11.43 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009191/0.3361, allocations: 1.134 MB / 490.6 MB, free: 10.28 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004086/0.3366, allocations: 452.2 kB / 491 MB, free: 9.836 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004356/0.337, allocations: 275.5 kB / 491.3 MB, free: 9.559 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.3371, allocations: 309 kB / 491.6 MB, free: 9.254 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001243/0.3384, allocations: 0.7144 MB / 492.3 MB, free: 8.539 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001592/0.34, allocations: 1.146 MB / 493.4 MB, free: 7.207 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002929/0.3429, allocations: 1.967 MB / 495.4 MB, free: 5.059 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.776e-06/0.3429, allocations: 4 kB / 495.4 MB, free: 5.055 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004382/0.3473, allocations: 2.44 MB / 497.8 MB, free: 2.594 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.66e-05/0.3473, allocations: 14.5 kB / 497.9 MB, free: 2.582 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.14e-05/0.3473, allocations: 15.94 kB / 497.9 MB, free: 2.566 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001024/0.3483, allocations: 423.4 kB / 498.3 MB, free: 2.141 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001278/0.3496, allocations: 347.4 kB / 498.6 MB, free: 1.801 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007465/0.3571, allocations: 6.769 MB / 0.4936 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001321/0.3584, allocations: 119.8 kB / 0.4937 GB, free: 10.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001244/0.3585, allocations: 63.94 kB / 0.4937 GB, free: 10.52 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.001246/0.3598, allocations: 0.7202 MB / 0.4944 GB, free: 9.785 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003389/0.3601, allocations: 174.9 kB / 0.4946 GB, free: 9.613 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003927/0.364, allocations: 2.103 MB / 0.4966 GB, free: 7.48 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-05/0.3641, allocations: 16 kB / 0.4967 GB, free: 7.465 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.879e-06/0.3641, allocations: 11.94 kB / 0.4967 GB, free: 7.453 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.198e-05/0.3641, allocations: 3.984 kB / 0.4967 GB, free: 7.449 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008167/0.3723, allocations: 4.414 MB / 0.501 GB, free: 2.914 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.004e-05/0.3723, allocations: 4 kB / 0.501 GB, free: 2.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009567/0.3732, allocations: 223.7 kB / 0.5012 GB, free: 2.691 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00114/0.3744, allocations: 447.5 kB / 0.5016 GB, free: 2.242 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.905e-05/0.3745, allocations: 32.08 kB / 0.5017 GB, free: 2.211 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00899/0.3834, allocations: 8.222 MB / 0.5097 GB, free: 9.531 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.77e-06/0.3835, allocations: 8.234 kB / 0.5097 GB, free: 9.523 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005306/0.3888, allocations: 3.144 MB / 0.5128 GB, free: 6.305 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001034/0.3898, allocations: 334.7 kB / 0.5131 GB, free: 5.977 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002751/0.3901, allocations: 28 kB / 0.5131 GB, free: 5.949 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009566/0.391, allocations: 87.89 kB / 0.5132 GB, free: 5.863 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002344/0.3913, allocations: 100.7 kB / 0.5133 GB, free: 5.766 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.294e-05/0.3913, allocations: 39.98 kB / 0.5133 GB, free: 5.727 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00168/0.393, allocations: 1.071 MB / 0.5144 GB, free: 4.66 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.393, allocations: 0 / 0.5144 GB, free: 4.66 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001632/0.3947, allocations: 491.9 kB / 0.5149 GB, free: 4.18 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.005712/0.4004, allocations: 3.788 MB / 0.5186 GB, free: 316 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003889/0.4043, allocations: 2.148 MB / 0.5206 GB, free: 14.11 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.542e-06/0.4043, allocations: 0 / 0.5206 GB, free: 14.11 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002589/0.4068, allocations: 1.434 MB / 0.522 GB, free: 12.63 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002258/0.4091, allocations: 475.2 kB / 0.5225 GB, free: 12.18 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.217/0.6261, allocations: 17.76 MB / 0.5398 GB, free: 100.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001374/0.6275, allocations: 1.309 MB / 0.5411 GB, free: 99.79 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001127/0.6286, allocations: 393.1 kB / 0.5415 GB, free: 99.77 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008727/0.6295, allocations: 0.87 MB / 0.5424 GB, free: 99.07 MB / 446.1 MB Notification: Performance of SimCode: time 7.51e-07/0.6295, allocations: 0 / 0.5424 GB, free: 99.07 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08539/0.7149, allocations: 48.59 MB / 0.5898 GB, free: 55.15 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.45/14.16, allocations: 18.77 kB / 0.5898 GB, free: 55.14 MB / 446.1 MB " [Timeout remaining time 646] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [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: 17.398521936964244]