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.001069/0.001069, allocations: 88.14 kB / 16.65 MB, free: 6.535 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.001109/0.001109, allocations: 173.5 kB / 17.56 MB, free: 6.184 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.331/1.331, allocations: 223.3 MB / 241.6 MB, free: 14.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003541/0.000354, allocations: 8 kB / 301.5 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1075, allocations: 50.42 MB / 352 MB, free: 3.367 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01114/0.1187, allocations: 9.683 MB / 361.6 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006722/0.1254, allocations: 3.365 MB / 365 MB, free: 6.262 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001735/0.1272, allocations: 51.75 kB / 365.1 MB, free: 6.211 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002364/0.1296, allocations: 0.672 MB / 365.7 MB, free: 5.535 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003141/0.1328, allocations: 0.7537 MB / 366.5 MB, free: 4.777 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001222/0.134, allocations: 367.6 kB / 366.8 MB, free: 4.418 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003779/0.1378, allocations: 3.075 MB / 369.9 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2016/0.3394, allocations: 2.01 MB / 371.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002128/0.3415, allocations: 0.9576 MB / 372.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002032/0.3436, allocations: 1.324 MB / 374.2 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003817/0.344, allocations: 139.5 kB / 374.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00084/0.3448, allocations: 254.9 kB / 374.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009446/0.3458, allocations: 0.7051 MB / 375.3 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001621/0.3474, allocations: 1.273 MB / 376.6 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006692/0.3541, allocations: 4.092 MB / 380.7 MB, free: 9.383 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3542, allocations: 1.156 kB / 380.7 MB, free: 9.383 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.3542, allocations: 4 kB / 380.7 MB, free: 9.379 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001242/0.3543, allocations: 0 / 380.7 MB, free: 9.379 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.005947/0.3602, allocations: 2.601 MB / 383.3 MB, free: 8.133 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.683e-05/0.3603, allocations: 9.969 kB / 383.3 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005414/0.3609, allocations: 328 kB / 383.6 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009347/0.3618, allocations: 308.5 kB / 383.9 MB, free: 7.938 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002624/0.3644, allocations: 1.575 MB / 385.5 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002202/0.3647, allocations: 179.2 kB / 385.7 MB, free: 7.301 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003879/0.3651, allocations: 220.4 kB / 385.9 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005087/0.3702, allocations: 2.936 MB / 388.8 MB, free: 6.324 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.969e-05/0.3702, allocations: 6.781 kB / 388.8 MB, free: 6.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002114/0.3704, allocations: 90.02 kB / 388.9 MB, free: 6.254 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001176/0.3706, allocations: 115.8 kB / 389 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004021/0.3746, allocations: 2.46 MB / 391.5 MB, free: 4.988 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01327/0.3879, allocations: 9.155 MB / 400.6 MB, free: 14.53 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002435/0.3904, allocations: 1.71 MB / 402.3 MB, free: 13.33 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001758/0.3921, allocations: 1.015 MB / 403.4 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003296/0.3925, allocations: 205.3 kB / 403.6 MB, free: 12.65 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.023e-05/0.3925, allocations: 47.5 kB / 403.6 MB, free: 12.6 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 2.505e-06/0.3925, allocations: 0 / 403.6 MB, free: 12.6 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01517/0.4077, allocations: 6.69 MB / 410.3 MB, free: 5.773 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.52e-05/0.4078, allocations: 68.41 kB / 410.4 MB, free: 5.695 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002836/0.4106, allocations: 1.557 MB / 411.9 MB, free: 4.129 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001249/0.4108, allocations: 49.69 kB / 412 MB, free: 4.074 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008631/0.4116, allocations: 1.116 MB / 413.1 MB, free: 2.949 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003786/0.412, allocations: 428.5 kB / 413.5 MB, free: 2.535 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001875/0.4122, allocations: 121.6 kB / 413.6 MB, free: 2.41 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.4124, allocations: 305.1 kB / 413.9 MB, free: 2.109 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001225/0.4136, allocations: 0.7222 MB / 414.6 MB, free: 1.387 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001526/0.4151, allocations: 1.148 MB / 415.8 MB, free: 64 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002931/0.4181, allocations: 1.991 MB / 417.8 MB, free: 13.95 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.977e-06/0.4181, allocations: 4 kB / 417.8 MB, free: 13.94 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004589/0.4227, allocations: 2.543 MB / 420.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.318e-05/0.4227, allocations: 18.75 kB / 420.3 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.239e-05/0.4228, allocations: 12 kB / 420.4 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/0.4238, allocations: 422 kB / 420.8 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001278/0.4251, allocations: 365.2 kB / 421.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006402/0.4315, allocations: 6.552 MB / 427.7 MB, free: 3.746 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001591/0.4331, allocations: 107.9 kB / 427.8 MB, free: 3.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/0.4332, allocations: 64.14 kB / 427.8 MB, free: 3.578 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.00153/0.4347, allocations: 0.7228 MB / 428.6 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003175/0.4351, allocations: 173.8 kB / 428.7 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003908/0.439, allocations: 2.224 MB / 431 MB, free: 452 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/0.439, allocations: 12 kB / 431 MB, free: 440 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.439, allocations: 4 kB / 431 MB, free: 436 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.323e-05/0.439, allocations: 7.969 kB / 431 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008463/0.4475, allocations: 4.815 MB / 435.8 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.718e-06/0.4475, allocations: 7.984 kB / 435.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009199/0.4485, allocations: 227.1 kB / 436 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001088/0.4496, allocations: 464.9 kB / 436.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.216e-05/0.4497, allocations: 35.98 kB / 436.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007462/0.4571, allocations: 7.983 MB / 444.5 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/0.4572, allocations: 7.844 kB / 444.5 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005361/0.4625, allocations: 3.24 MB / 447.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001013/0.4636, allocations: 406.8 kB / 448.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000495/0.4641, allocations: 31.98 kB / 448.2 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001227/0.4653, allocations: 93.03 kB / 448.3 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002465/0.4656, allocations: 105.4 kB / 448.4 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.623e-05/0.4657, allocations: 36 kB / 448.4 MB, free: 14.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002153/0.4678, allocations: 1.063 MB / 449.5 MB, free: 13.28 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4678, allocations: 0 / 449.5 MB, free: 13.28 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002278/0.4701, allocations: 496 kB / 449.9 MB, free: 12.8 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.005882/0.476, allocations: 3.895 MB / 453.8 MB, free: 8.828 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003848/0.4799, allocations: 2.306 MB / 456.1 MB, free: 6.516 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.4799, allocations: 7.938 kB / 456.2 MB, free: 6.508 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002326/0.4822, allocations: 1.491 MB / 457.6 MB, free: 4.992 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003097/0.4853, allocations: 454.1 kB / 458.1 MB, free: 4.555 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03548/0.5208, allocations: 20.74 MB / 478.8 MB, free: 14.46 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001899/0.5228, allocations: 1.871 MB / 480.7 MB, free: 12.55 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001331/0.5241, allocations: 394.8 kB / 481.1 MB, free: 12.16 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001205/0.5253, allocations: 0.8664 MB / 482 MB, free: 11.3 MB / 398.1 MB Notification: Performance of SimCode: time 1.062e-06/0.5253, allocations: 0 / 482 MB, free: 11.3 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4334/0.9587, allocations: 42.37 MB / 0.512 GB, free: 1.457 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002821/0.959, allocations: 243.8 kB / 0.5123 GB, free: 1.207 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.322/4.281, allocations: 3.625 kB / 0.5123 GB, free: 1.207 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