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.001608/0.001608, allocations: 103.6 kB / 16.51 MB, free: 6.645 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.001787/0.001788, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.28/1.28, allocations: 222.9 MB / 241.1 MB, free: 13.71 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001045/0.001045, allocations: 52.42 kB / 300.1 MB, free: 5.945 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07893/0.07998, allocations: 49.45 MB / 349.5 MB, free: 4.496 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01046/0.09047, allocations: 10.23 MB / 359.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005426/0.09592, allocations: 3.392 MB / 363.1 MB, free: 6.812 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001216/0.09716, allocations: 55.75 kB / 363.2 MB, free: 6.758 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001828/0.09902, allocations: 0.6721 MB / 363.9 MB, free: 6.082 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002088/0.1011, allocations: 0.7537 MB / 364.6 MB, free: 5.324 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008577/0.102, allocations: 371.6 kB / 365 MB, free: 4.961 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002896/0.1049, allocations: 3.09 MB / 368.1 MB, free: 1.859 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1382/0.2432, allocations: 2.02 MB / 370.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001677/0.2449, allocations: 1.101 MB / 371.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001693/0.2466, allocations: 1.529 MB / 372.7 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004348/0.247, allocations: 206.8 kB / 372.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007447/0.2478, allocations: 314.1 kB / 373.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007772/0.2486, allocations: 0.8069 MB / 374 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001212/0.2498, allocations: 1.372 MB / 375.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00356/0.2534, allocations: 4.229 MB / 379.6 MB, free: 10 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2534, allocations: 0 / 379.6 MB, free: 10 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.2534, allocations: 0 / 379.6 MB, free: 10 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.61e-05/0.2535, allocations: 1.031 kB / 379.6 MB, free: 10 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.00549/0.259, allocations: 3.063 MB / 382.7 MB, free: 8.719 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.259, allocations: 9.375 kB / 382.7 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003789/0.2594, allocations: 325.9 kB / 383 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007673/0.2602, allocations: 307.4 kB / 383.3 MB, free: 8.477 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00218/0.2624, allocations: 1.571 MB / 384.9 MB, free: 7.625 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001359/0.2625, allocations: 187.4 kB / 385.1 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003019/0.2628, allocations: 222.5 kB / 385.3 MB, free: 7.465 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004261/0.2671, allocations: 2.92 MB / 388.2 MB, free: 5.883 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.223e-05/0.2671, allocations: 6.438 kB / 388.2 MB, free: 5.879 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002066/0.2674, allocations: 87.12 kB / 388.3 MB, free: 5.812 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001092/0.2675, allocations: 111.9 kB / 388.4 MB, free: 5.793 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003645/0.2711, allocations: 2.428 MB / 390.9 MB, free: 4.559 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01175/0.2829, allocations: 9.108 MB / 400 MB, free: 14.13 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002163/0.2851, allocations: 1.703 MB / 401.7 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001599/0.2867, allocations: 0.9945 MB / 402.7 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002756/0.287, allocations: 204 kB / 402.9 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.99e-05/0.287, allocations: 49.66 kB / 402.9 MB, free: 12.22 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 2.995e-06/0.287, allocations: 0 / 402.9 MB, free: 12.22 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01373/0.3008, allocations: 6.561 MB / 409.5 MB, free: 5.793 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.577e-05/0.3008, allocations: 64.41 kB / 409.5 MB, free: 5.719 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002269/0.3031, allocations: 1.561 MB / 411.1 MB, free: 4.148 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.835e-05/0.3032, allocations: 45.7 kB / 411.1 MB, free: 4.098 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000746/0.304, allocations: 1.109 MB / 412.3 MB, free: 2.977 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000328/0.3043, allocations: 424.6 kB / 412.7 MB, free: 2.566 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004302/0.3047, allocations: 279.3 kB / 412.9 MB, free: 2.289 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.744e-05/0.3048, allocations: 301.1 kB / 413.2 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001163/0.306, allocations: 0.7105 MB / 413.9 MB, free: 1.281 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001426/0.3074, allocations: 1.14 MB / 415.1 MB, free: 15.96 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002677/0.3101, allocations: 1.968 MB / 417.1 MB, free: 13.87 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.3102, allocations: 7.938 kB / 417.1 MB, free: 13.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004234/0.3144, allocations: 2.523 MB / 419.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.501e-05/0.3144, allocations: 15.94 kB / 419.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.387e-05/0.3145, allocations: 16 kB / 419.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001022/0.3155, allocations: 423.3 kB / 420 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001271/0.3168, allocations: 349 kB / 420.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006652/0.3234, allocations: 6.545 MB / 426.9 MB, free: 3.703 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001426/0.3249, allocations: 103.9 kB / 427 MB, free: 3.602 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001565/0.325, allocations: 64 kB / 427.1 MB, free: 3.539 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.001387/0.3264, allocations: 0.7124 MB / 427.8 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004381/0.3269, allocations: 173.8 kB / 428 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004001/0.3309, allocations: 2.207 MB / 430.2 MB, free: 440 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-05/0.3309, allocations: 19.98 kB / 430.2 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.151e-05/0.3309, allocations: 4 kB / 430.2 MB, free: 416 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/0.331, allocations: 4.078 kB / 430.2 MB, free: 412 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00864/0.3396, allocations: 4.788 MB / 435 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.117e-06/0.3396, allocations: 4 kB / 435 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009495/0.3406, allocations: 225.3 kB / 435.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001158/0.3418, allocations: 458.2 kB / 435.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001038/0.3419, allocations: 35.98 kB / 435.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007515/0.3494, allocations: 7.976 MB / 443.7 MB, free: 2.367 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/0.3494, allocations: 7.984 kB / 443.7 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005264/0.3547, allocations: 3.22 MB / 446.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009426/0.3557, allocations: 394.8 kB / 447.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004675/0.3561, allocations: 35.98 kB / 447.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001161/0.3573, allocations: 83.91 kB / 447.4 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002895/0.3576, allocations: 103.7 kB / 447.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001034/0.3577, allocations: 36 kB / 447.5 MB, free: 14.4 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002318/0.36, allocations: 1.074 MB / 448.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3601, allocations: 7.938 kB / 448.6 MB, free: 13.32 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001958/0.362, allocations: 484 kB / 449.1 MB, free: 12.85 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.005538/0.3676, allocations: 3.855 MB / 452.9 MB, free: 8.926 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003746/0.3713, allocations: 2.286 MB / 455.2 MB, free: 6.629 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.3713, allocations: 4 kB / 455.2 MB, free: 6.625 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002385/0.3737, allocations: 1.477 MB / 456.7 MB, free: 5.125 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002391/0.3761, allocations: 452.8 kB / 457.2 MB, free: 4.691 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03363/0.4098, allocations: 20.54 MB / 477.7 MB, free: 14.8 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00178/0.4116, allocations: 1.867 MB / 479.6 MB, free: 12.9 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001257/0.4129, allocations: 394.8 kB / 479.9 MB, free: 12.51 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001156/0.414, allocations: 0.8664 MB / 480.8 MB, free: 11.64 MB / 398.1 MB Notification: Performance of SimCode: time 9.71e-07/0.414, allocations: 0 / 480.8 MB, free: 11.64 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06653/0.4806, allocations: 42.98 MB / 0.5115 GB, free: 1.168 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002895/0.4809, allocations: 252.1 kB / 0.5118 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.666/3.147, allocations: 64 / 0.5118 GB, free: 0.9141 MB / 430.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