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.001288/0.001288, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.00116/0.00116, allocations: 193.4 kB / 18 MB, free: 5.172 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.383/1.383, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 47.92 kB / 350.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2324/0.2337, allocations: 49.44 MB / 400.3 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01169/0.2454, allocations: 10.32 MB / 410.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006241/0.2517, allocations: 3.419 MB / 414 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001344/0.253, allocations: 59.75 kB / 414.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001863/0.255, allocations: 0.7675 MB / 414.8 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002354/0.2573, allocations: 0.8268 MB / 415.6 MB, free: 9.355 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009122/0.2583, allocations: 423.4 kB / 416.1 MB, free: 8.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003308/0.2616, allocations: 2.747 MB / 418.8 MB, free: 6.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002873/0.2645, allocations: 2.398 MB / 421.2 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00183/0.2663, allocations: 1.261 MB / 422.5 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002431/0.2688, allocations: 1.576 MB / 424 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005958/0.2694, allocations: 340 kB / 424.4 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009301/0.2703, allocations: 439.8 kB / 424.8 MB, free: 104 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009417/0.2713, allocations: 0.9311 MB / 425.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001781/0.2731, allocations: 1.513 MB / 427.3 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004888/0.278, allocations: 4.39 MB / 431.6 MB, free: 9.242 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.278, allocations: 0 / 431.6 MB, free: 9.242 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.278, allocations: 0 / 431.6 MB, free: 9.242 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001022/0.2781, allocations: 0 / 431.6 MB, free: 9.242 MB / 350.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.006665/0.2848, allocations: 3.132 MB / 434.8 MB, free: 6.043 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.2848, allocations: 8.031 kB / 434.8 MB, free: 6.035 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004594/0.2853, allocations: 324.9 kB / 435.1 MB, free: 5.707 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008179/0.2861, allocations: 327 kB / 435.4 MB, free: 5.387 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002787/0.2889, allocations: 1.642 MB / 437.1 MB, free: 3.688 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001375/0.2891, allocations: 168.4 kB / 437.2 MB, free: 3.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003365/0.2894, allocations: 220 kB / 437.4 MB, free: 3.305 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004817/0.2943, allocations: 2.925 MB / 440.4 MB, free: 300 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.565e-05/0.2943, allocations: 8 kB / 440.4 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001986/0.2945, allocations: 88 kB / 440.5 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001135/0.2947, allocations: 112.3 kB / 440.6 MB, free: 88 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004262/0.2989, allocations: 2.437 MB / 443 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01366/0.3126, allocations: 9.034 MB / 452 MB, free: 4.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002359/0.315, allocations: 1.704 MB / 453.7 MB, free: 2.492 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001745/0.3168, allocations: 0.9808 MB / 454.7 MB, free: 1.512 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002779/0.317, allocations: 203.2 kB / 454.9 MB, free: 1.277 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.41e-05/0.3171, allocations: 43.56 kB / 455 MB, free: 1.227 MB / 366.1 MB Notification: Performance of pre-optimization done (n=105): time 2.575e-06/0.3171, allocations: 0 / 455 MB, free: 1.227 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01402/0.3311, allocations: 6.614 MB / 461.6 MB, free: 10.45 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.187e-05/0.3312, allocations: 64.41 kB / 461.6 MB, free: 10.38 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002216/0.3334, allocations: 1.561 MB / 463.2 MB, free: 8.809 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001137/0.3335, allocations: 45.7 kB / 463.2 MB, free: 8.758 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008514/0.3344, allocations: 1.134 MB / 464.4 MB, free: 7.609 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003771/0.3348, allocations: 452.1 kB / 464.8 MB, free: 7.164 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004293/0.3352, allocations: 275.5 kB / 465.1 MB, free: 6.887 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.3353, allocations: 301.1 kB / 465.4 MB, free: 6.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001232/0.3366, allocations: 0.7105 MB / 466.1 MB, free: 5.879 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001537/0.3381, allocations: 1.146 MB / 467.2 MB, free: 4.555 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002836/0.341, allocations: 1.967 MB / 469.2 MB, free: 2.406 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.341, allocations: 4 kB / 469.2 MB, free: 2.402 MB / 382.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.00427/0.3453, allocations: 2.531 MB / 471.7 MB, free: 15.83 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/0.3453, allocations: 12 kB / 471.8 MB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.841e-05/0.3453, allocations: 12 kB / 471.8 MB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009605/0.3463, allocations: 419.4 kB / 472.2 MB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001251/0.3476, allocations: 367.4 kB / 472.5 MB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007148/0.3547, allocations: 7.12 MB / 479.7 MB, free: 7.496 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001313/0.356, allocations: 111.9 kB / 479.8 MB, free: 7.387 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001253/0.3562, allocations: 67.92 kB / 479.8 MB, free: 7.32 MB / 398.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.001159/0.3573, allocations: 0.716 MB / 480.5 MB, free: 6.594 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000294/0.3576, allocations: 178.8 kB / 480.7 MB, free: 6.418 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003829/0.3615, allocations: 2.198 MB / 482.9 MB, free: 4.176 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.3615, allocations: 16 kB / 482.9 MB, free: 4.16 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.374e-05/0.3615, allocations: 11.94 kB / 482.9 MB, free: 4.148 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.158e-05/0.3616, allocations: 7.984 kB / 483 MB, free: 4.141 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007772/0.3693, allocations: 4.772 MB / 487.7 MB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.478e-06/0.3694, allocations: 4 kB / 487.7 MB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009102/0.3703, allocations: 219.7 kB / 487.9 MB, free: 15 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001132/0.3714, allocations: 451.2 kB / 488.4 MB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.154e-05/0.3715, allocations: 35.98 kB / 488.4 MB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008526/0.3801, allocations: 8.686 MB / 497.1 MB, free: 5.258 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.563e-06/0.3801, allocations: 11.94 kB / 497.1 MB, free: 5.246 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005232/0.3853, allocations: 3.215 MB / 0.4886 GB, free: 1.938 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007904/0.3861, allocations: 415.8 kB / 0.489 GB, free: 1.512 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002257/0.3864, allocations: 31.98 kB / 0.489 GB, free: 1.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008631/0.3872, allocations: 87.91 kB / 0.4891 GB, free: 1.395 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002268/0.3875, allocations: 96.75 kB / 0.4892 GB, free: 1.301 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.862e-05/0.3876, allocations: 39.98 kB / 0.4892 GB, free: 1.262 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001527/0.3891, allocations: 1.066 MB / 0.4903 GB, free: 204 kB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3891, allocations: 0 / 0.4903 GB, free: 204 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.001617/0.3907, allocations: 488 kB / 0.4908 GB, free: 15.72 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.005539/0.3963, allocations: 3.88 MB / 0.4945 GB, free: 11.74 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003843/0.4002, allocations: 2.305 MB / 0.4968 GB, free: 9.375 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/0.4002, allocations: 3.984 kB / 0.4968 GB, free: 9.371 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002468/0.4027, allocations: 1.466 MB / 0.4982 GB, free: 7.852 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002214/0.4049, allocations: 488.5 kB / 0.4987 GB, free: 7.383 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02729/0.4322, allocations: 17.91 MB / 0.5162 GB, free: 4.723 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001647/0.4339, allocations: 1.867 MB / 0.518 GB, free: 2.824 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001116/0.435, allocations: 382.9 kB / 0.5184 GB, free: 2.445 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001141/0.4362, allocations: 0.8742 MB / 0.5192 GB, free: 1.57 MB / 446.1 MB Notification: Performance of SimCode: time 7.72e-07/0.4362, allocations: 4 kB / 0.5192 GB, free: 1.566 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.866/2.303, allocations: 45.08 MB / 0.5633 GB, free: 114.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.5/17.81, allocations: 9.688 kB / 0.5633 GB, free: 114.1 MB / 462.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