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) 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 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 110.4 kB / 16.92 MB, free: 6.332 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.001126/0.001126, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001107/0.001107, allocations: 47.94 kB / 300.7 MB, free: 5.684 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07875/0.07988, allocations: 49.44 MB / 350.2 MB, free: 4.23 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01104/0.09095, allocations: 10.3 MB / 360.5 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006068/0.09706, allocations: 3.427 MB / 363.9 MB, free: 6.438 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001374/0.09846, allocations: 59.75 kB / 364 MB, free: 6.379 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002017/0.1005, allocations: 0.7685 MB / 364.7 MB, free: 5.605 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002754/0.1033, allocations: 0.8268 MB / 365.6 MB, free: 4.773 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00121/0.1045, allocations: 427.4 kB / 366 MB, free: 4.355 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003094/0.1076, allocations: 2.731 MB / 368.7 MB, free: 1.617 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1546/0.2622, allocations: 2.397 MB / 371.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001827/0.2641, allocations: 1.258 MB / 372.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00213/0.2662, allocations: 1.576 MB / 373.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006152/0.2669, allocations: 334.1 kB / 374.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008705/0.2677, allocations: 435.4 kB / 374.7 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008888/0.2686, allocations: 0.9372 MB / 375.6 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001596/0.2703, allocations: 1.509 MB / 377.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004181/0.2744, allocations: 4.331 MB / 381.5 MB, free: 9.941 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.2745, allocations: 0 / 381.5 MB, free: 9.941 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.2745, allocations: 1.312 kB / 381.5 MB, free: 9.941 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001038/0.2746, allocations: 5.094 kB / 381.5 MB, free: 9.938 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.006087/0.2807, allocations: 3.046 MB / 384.5 MB, free: 8.289 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.2807, allocations: 12.06 kB / 384.5 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004411/0.2812, allocations: 327.2 kB / 384.8 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008816/0.2821, allocations: 314.5 kB / 385.2 MB, free: 7.949 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00263/0.2847, allocations: 1.574 MB / 386.7 MB, free: 7.098 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001615/0.2849, allocations: 172.8 kB / 386.9 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003315/0.2852, allocations: 223.5 kB / 387.1 MB, free: 6.945 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004725/0.29, allocations: 2.916 MB / 390 MB, free: 5.285 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.521e-05/0.29, allocations: 11.03 kB / 390 MB, free: 5.277 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002121/0.2903, allocations: 97.53 kB / 390.1 MB, free: 5.207 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001042/0.2904, allocations: 114.7 kB / 390.2 MB, free: 5.184 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003947/0.2943, allocations: 2.436 MB / 392.7 MB, free: 3.941 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01199/0.3063, allocations: 9.098 MB / 401.8 MB, free: 13.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002167/0.3085, allocations: 1.712 MB / 403.5 MB, free: 11.95 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001667/0.3102, allocations: 0.9914 MB / 404.5 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002691/0.3105, allocations: 207.1 kB / 404.7 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.932e-05/0.3105, allocations: 43.56 kB / 404.7 MB, free: 10.68 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 3.096e-06/0.3105, allocations: 0 / 404.7 MB, free: 10.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01389/0.3244, allocations: 6.569 MB / 411.3 MB, free: 3.98 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.346e-05/0.3245, allocations: 68.41 kB / 411.4 MB, free: 3.902 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002222/0.3267, allocations: 1.561 MB / 412.9 MB, free: 2.332 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001009/0.3269, allocations: 45.7 kB / 413 MB, free: 2.281 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007321/0.3276, allocations: 1.118 MB / 414.1 MB, free: 1.152 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003265/0.3279, allocations: 423.7 kB / 414.5 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004267/0.3284, allocations: 275.3 kB / 414.8 MB, free: 480 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.715e-05/0.3285, allocations: 301.1 kB / 415.1 MB, free: 176 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001158/0.3296, allocations: 0.7085 MB / 415.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001386/0.331, allocations: 1.133 MB / 416.9 MB, free: 14.15 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002592/0.3336, allocations: 1.971 MB / 418.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.742e-06/0.3336, allocations: 4 kB / 418.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004114/0.3378, allocations: 2.52 MB / 421.4 MB, free: 9.578 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.953e-05/0.3378, allocations: 11.94 kB / 421.4 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.67e-05/0.3378, allocations: 12 kB / 421.4 MB, free: 9.555 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001032/0.3389, allocations: 437.9 kB / 421.9 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001306/0.3402, allocations: 354.6 kB / 422.2 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006614/0.3468, allocations: 7.127 MB / 429.3 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001529/0.3484, allocations: 107.8 kB / 429.4 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001285/0.3485, allocations: 67.98 kB / 429.5 MB, free: 1.117 MB / 334.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.001298/0.3498, allocations: 0.7176 MB / 430.2 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003163/0.3501, allocations: 173.9 kB / 430.4 MB, free: 244 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003876/0.354, allocations: 2.191 MB / 432.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-05/0.3541, allocations: 16.08 kB / 432.6 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.3541, allocations: 4 kB / 432.6 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.332e-05/0.3541, allocations: 3.984 kB / 432.6 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007534/0.3616, allocations: 4.79 MB / 437.4 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.498e-06/0.3617, allocations: 11.92 kB / 437.4 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009577/0.3626, allocations: 222.5 kB / 437.6 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001121/0.3638, allocations: 454.1 kB / 438.1 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-05/0.3639, allocations: 35.98 kB / 438.1 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007923/0.3718, allocations: 8.694 MB / 446.8 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.127e-06/0.3718, allocations: 4 kB / 446.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005273/0.3771, allocations: 3.226 MB / 450 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009037/0.378, allocations: 398.8 kB / 450.4 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003025/0.3783, allocations: 35.98 kB / 450.4 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001018/0.3794, allocations: 79.91 kB / 450.5 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002384/0.3796, allocations: 102.1 kB / 450.6 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.458e-05/0.3797, allocations: 35.98 kB / 450.7 MB, free: 11.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001858/0.3816, allocations: 1.07 MB / 451.7 MB, free: 10.19 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3816, allocations: 3.938 kB / 451.7 MB, free: 10.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001835/0.3834, allocations: 484 kB / 452.2 MB, free: 9.711 MB / 366.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.005847/0.3893, allocations: 3.86 MB / 456.1 MB, free: 5.785 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006004/0.3953, allocations: 2.794 MB / 458.9 MB, free: 2.992 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.816e-06/0.3954, allocations: 0 / 458.9 MB, free: 2.992 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002734/0.3981, allocations: 1.471 MB / 460.3 MB, free: 1.492 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003086/0.4012, allocations: 487.7 kB / 460.8 MB, free: 1.027 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03026/0.4315, allocations: 19.62 MB / 480.4 MB, free: 12.06 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00167/0.4332, allocations: 1.875 MB / 482.3 MB, free: 10.15 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001185/0.4344, allocations: 386.9 kB / 482.7 MB, free: 9.77 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001091/0.4355, allocations: 0.8742 MB / 483.6 MB, free: 8.895 MB / 398.1 MB Notification: Performance of SimCode: time 6.62e-07/0.4355, allocations: 0 / 483.6 MB, free: 8.895 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0793/0.5148, allocations: 44.17 MB / 0.5154 GB, free: 13.22 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.77/13.29, allocations: 15.69 kB / 0.5154 GB, free: 13.21 MB / 446.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 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) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/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) Reference file matches