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.001074/0.001074, allocations: 110.7 kB / 16.63 MB, free: 6.34 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.001107/0.001107, allocations: 189.5 kB / 17.55 MB, free: 5.801 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.357/1.357, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 45.89 kB / 300.2 MB, free: 6.098 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0908/0.09198, allocations: 49.45 MB / 349.7 MB, free: 4.641 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01155/0.1036, allocations: 10.23 MB / 359.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005929/0.1095, allocations: 3.377 MB / 363.3 MB, free: 6.969 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001177/0.1107, allocations: 51.75 kB / 363.4 MB, free: 6.918 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001798/0.1126, allocations: 0.6838 MB / 364 MB, free: 6.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00263/0.1152, allocations: 0.7536 MB / 364.8 MB, free: 5.473 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009069/0.1161, allocations: 371.6 kB / 365.2 MB, free: 5.109 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003285/0.1194, allocations: 2.736 MB / 367.9 MB, free: 2.363 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1686/0.288, allocations: 2.405 MB / 370.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002101/0.2901, allocations: 1.263 MB / 371.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002011/0.2922, allocations: 1.607 MB / 373.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005357/0.2927, allocations: 335.7 kB / 373.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000821/0.2936, allocations: 437.3 kB / 373.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008866/0.2945, allocations: 0.9319 MB / 374.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001538/0.296, allocations: 1.513 MB / 376.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00448/0.3005, allocations: 4.333 MB / 380.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.3005, allocations: 0 / 380.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3005, allocations: 0 / 380.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.746e-05/0.3006, allocations: 1.594 kB / 380.7 MB, free: 10.33 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.006212/0.3068, allocations: 3.056 MB / 383.8 MB, free: 8.719 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/0.3069, allocations: 8.938 kB / 383.8 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004256/0.3073, allocations: 326.5 kB / 384.1 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008819/0.3082, allocations: 309.4 kB / 384.4 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002312/0.3106, allocations: 1.574 MB / 386 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001745/0.3107, allocations: 178 kB / 386.1 MB, free: 7.449 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003523/0.3111, allocations: 226.5 kB / 386.4 MB, free: 7.371 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004782/0.3159, allocations: 2.917 MB / 389.3 MB, free: 5.633 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.126e-05/0.316, allocations: 8.438 kB / 389.3 MB, free: 5.629 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002143/0.3162, allocations: 94.5 kB / 389.4 MB, free: 5.559 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001225/0.3163, allocations: 111.7 kB / 389.5 MB, free: 5.539 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003712/0.32, allocations: 2.429 MB / 391.9 MB, free: 4.305 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01247/0.3325, allocations: 9.106 MB / 401 MB, free: 13.88 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00213/0.3347, allocations: 1.705 MB / 402.7 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001641/0.3363, allocations: 0.9961 MB / 403.7 MB, free: 11.93 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003324/0.3367, allocations: 202.4 kB / 403.9 MB, free: 11.7 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.201e-05/0.3368, allocations: 52.11 kB / 404 MB, free: 11.64 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 3.626e-06/0.3368, allocations: 0 / 404 MB, free: 11.64 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01396/0.3507, allocations: 6.557 MB / 410.5 MB, free: 4.949 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.563e-05/0.3508, allocations: 68.41 kB / 410.6 MB, free: 4.871 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002497/0.3533, allocations: 1.561 MB / 412.1 MB, free: 3.301 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.709e-05/0.3534, allocations: 45.7 kB / 412.2 MB, free: 3.25 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007876/0.3542, allocations: 1.117 MB / 413.3 MB, free: 2.125 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003534/0.3546, allocations: 420.9 kB / 413.7 MB, free: 1.715 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004714/0.3551, allocations: 275.3 kB / 414 MB, free: 1.441 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.048e-05/0.3552, allocations: 309.1 kB / 414.3 MB, free: 1.137 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001182/0.3563, allocations: 0.7105 MB / 415 MB, free: 436 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001445/0.3578, allocations: 1.132 MB / 416.1 MB, free: 15.12 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00272/0.3605, allocations: 1.975 MB / 418.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.091e-05/0.3606, allocations: 4 kB / 418.1 MB, free: 13.01 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004362/0.3649, allocations: 2.521 MB / 420.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.415e-05/0.365, allocations: 19.92 kB / 420.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.597e-05/0.365, allocations: 12 kB / 420.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001062/0.3661, allocations: 424 kB / 421.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/0.3674, allocations: 356.8 kB / 421.4 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007024/0.3745, allocations: 7.122 MB / 428.6 MB, free: 2.258 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001716/0.3762, allocations: 103.8 kB / 428.7 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002426/0.3765, allocations: 71.98 kB / 428.7 MB, free: 2.086 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.001495/0.378, allocations: 0.7216 MB / 429.4 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004973/0.3785, allocations: 169.9 kB / 429.6 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00411/0.3826, allocations: 2.194 MB / 431.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.446e-05/0.3826, allocations: 12 kB / 431.8 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.568e-05/0.3826, allocations: 8 kB / 431.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.59e-05/0.3827, allocations: 11.91 kB / 431.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009991/0.3927, allocations: 4.794 MB / 436.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-05/0.3927, allocations: 8.062 kB / 436.6 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001013/0.3937, allocations: 221.2 kB / 436.9 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001282/0.395, allocations: 451 kB / 437.3 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001263/0.3952, allocations: 35.98 kB / 437.3 MB, free: 9.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008546/0.4037, allocations: 8.693 MB / 446 MB, free: 184 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.501e-06/0.4038, allocations: 4 kB / 446 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005781/0.4096, allocations: 3.213 MB / 449.2 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001169/0.4108, allocations: 406.8 kB / 449.6 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005226/0.4113, allocations: 31.98 kB / 449.7 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001246/0.4126, allocations: 79.91 kB / 449.7 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002712/0.4128, allocations: 104.8 kB / 449.8 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.911e-05/0.413, allocations: 43.97 kB / 449.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00201/0.415, allocations: 1.066 MB / 451 MB, free: 11.15 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.415, allocations: 0 / 451 MB, free: 11.15 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002231/0.4172, allocations: 488 kB / 451.4 MB, free: 10.68 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.006083/0.4233, allocations: 3.856 MB / 455.3 MB, free: 6.746 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005552/0.4289, allocations: 2.797 MB / 458.1 MB, free: 3.949 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.698e-06/0.4289, allocations: 0 / 458.1 MB, free: 3.949 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002547/0.4315, allocations: 1.472 MB / 459.6 MB, free: 2.453 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00305/0.4346, allocations: 472.1 kB / 460 MB, free: 2.004 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04062/0.4752, allocations: 20.57 MB / 480.6 MB, free: 12.1 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001969/0.4772, allocations: 1.867 MB / 482.5 MB, free: 10.2 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0014/0.4786, allocations: 390.9 kB / 482.8 MB, free: 9.812 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001265/0.4799, allocations: 0.8742 MB / 483.7 MB, free: 8.938 MB / 398.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4799, allocations: 0 / 483.7 MB, free: 8.938 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.161/1.641, allocations: 44 MB / 0.5154 GB, free: 13.48 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002066/1.642, allocations: 255.5 kB / 0.5156 GB, free: 13.22 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.078/4.72, allocations: 0 / 0.5156 GB, free: 13.22 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