Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_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.0009614/0.0009614, allocations: 108.1 kB / 17.15 MB, free: 6.309 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.0009767/0.0009768, allocations: 198 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.327/1.327, allocations: 205.1 MB / 223.9 MB, free: 12.46 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001118/0.001118, allocations: 47.92 kB / 280.1 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1014, allocations: 46.63 MB / 326.7 MB, free: 4.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01065/0.1121, allocations: 10.19 MB / 336.9 MB, free: 10.54 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005861/0.118, allocations: 3.448 MB / 340.3 MB, free: 7.078 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001217/0.1192, allocations: 43.81 kB / 340.4 MB, free: 7.035 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00166/0.1209, allocations: 0.6876 MB / 341.1 MB, free: 6.344 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00216/0.1231, allocations: 0.7537 MB / 341.8 MB, free: 5.586 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008275/0.1239, allocations: 375.5 kB / 342.2 MB, free: 5.219 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003/0.127, allocations: 3.09 MB / 345.3 MB, free: 2.117 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002242/0.1292, allocations: 1.997 MB / 347.3 MB, free: 60 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001522/0.1307, allocations: 1.101 MB / 348.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001685/0.1324, allocations: 1.518 MB / 349.9 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003336/0.1328, allocations: 208 kB / 350.1 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007099/0.1335, allocations: 319.8 kB / 350.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007722/0.1343, allocations: 0.8061 MB / 351.2 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001365/0.1357, allocations: 1.376 MB / 352.6 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00347/0.1392, allocations: 4.225 MB / 356.8 MB, free: 6.484 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1392, allocations: 4 kB / 356.8 MB, free: 6.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.1392, allocations: 0 / 356.8 MB, free: 6.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.94e-05/0.1392, allocations: 3.938 kB / 356.8 MB, free: 6.477 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.00565/0.1449, allocations: 3.042 MB / 359.9 MB, free: 3.371 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.081e-05/0.145, allocations: 12.03 kB / 359.9 MB, free: 3.359 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004003/0.1454, allocations: 325 kB / 360.2 MB, free: 3.031 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007796/0.1462, allocations: 313.4 kB / 360.5 MB, free: 2.723 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002374/0.1485, allocations: 1.516 MB / 362 MB, free: 1.148 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001503/0.1487, allocations: 176.3 kB / 362.2 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003019/0.149, allocations: 220 kB / 362.4 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004534/0.1536, allocations: 2.913 MB / 365.3 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.06e-05/0.1536, allocations: 11.84 kB / 365.3 MB, free: 13.74 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001896/0.1538, allocations: 95.91 kB / 365.4 MB, free: 13.65 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00011/0.1539, allocations: 112.3 kB / 365.5 MB, free: 13.54 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003788/0.1577, allocations: 2.43 MB / 368 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01202/0.1698, allocations: 9.109 MB / 377.1 MB, free: 1.699 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1672/0.3369, allocations: 1.702 MB / 378.8 MB, free: 51 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002141/0.3391, allocations: 0.9897 MB / 379.8 MB, free: 50.98 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002778/0.3394, allocations: 204.3 kB / 380 MB, free: 50.79 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.56e-05/0.3394, allocations: 44.02 kB / 380 MB, free: 50.75 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 3.878e-06/0.3395, allocations: 2.219 kB / 380 MB, free: 50.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01442/0.3539, allocations: 6.526 MB / 386.5 MB, free: 48.57 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.805e-05/0.354, allocations: 68.31 kB / 386.6 MB, free: 48.51 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002487/0.3564, allocations: 1.564 MB / 388.2 MB, free: 47.91 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.059e-05/0.3565, allocations: 46.55 kB / 388.2 MB, free: 47.86 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006396/0.3572, allocations: 1.107 MB / 389.3 MB, free: 47 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000273/0.3575, allocations: 432.2 kB / 389.7 MB, free: 46.68 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003927/0.3579, allocations: 273.5 kB / 390 MB, free: 46.55 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.515e-05/0.3579, allocations: 305.9 kB / 390.3 MB, free: 46.25 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00114/0.3591, allocations: 0.7092 MB / 391 MB, free: 46.01 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001114/0.3602, allocations: 1.131 MB / 392.2 MB, free: 45.23 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002355/0.3626, allocations: 1.97 MB / 394.1 MB, free: 44.05 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.907e-06/0.3626, allocations: 2.469 kB / 394.1 MB, free: 44.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.003916/0.3665, allocations: 2.521 MB / 396.6 MB, free: 42.99 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.597e-05/0.3665, allocations: 12.34 kB / 396.7 MB, free: 42.99 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/0.3666, allocations: 11.66 kB / 396.7 MB, free: 42.99 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008881/0.3675, allocations: 426.7 kB / 397.1 MB, free: 42.86 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001108/0.3686, allocations: 347.2 kB / 397.4 MB, free: 42.82 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005387/0.374, allocations: 6.547 MB / 404 MB, free: 37.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001624/0.3756, allocations: 109.7 kB / 404.1 MB, free: 37.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001071/0.3757, allocations: 62.92 kB / 404.1 MB, free: 37.36 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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.001317/0.3771, allocations: 0.7187 MB / 404.9 MB, free: 36.88 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003278/0.3774, allocations: 168.8 kB / 405 MB, free: 36.79 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003204/0.3806, allocations: 2.189 MB / 407.2 MB, free: 34.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.725e-06/0.3806, allocations: 12 kB / 407.2 MB, free: 34.56 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.3806, allocations: 11.98 kB / 407.2 MB, free: 34.55 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.298e-06/0.3807, allocations: 3.984 kB / 407.2 MB, free: 34.54 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006334/0.387, allocations: 4.786 MB / 412 MB, free: 29.64 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.636e-06/0.387, allocations: 8.031 kB / 412 MB, free: 29.63 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008234/0.3879, allocations: 220.3 kB / 412.2 MB, free: 29.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009634/0.3888, allocations: 460.2 kB / 412.7 MB, free: 28.95 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.416e-05/0.3889, allocations: 31.98 kB / 412.7 MB, free: 28.92 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005393/0.3943, allocations: 7.978 MB / 420.7 MB, free: 20.43 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.3943, allocations: 11.94 kB / 420.7 MB, free: 20.42 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004076/0.3984, allocations: 3.218 MB / 423.9 MB, free: 17.11 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007372/0.3992, allocations: 394.8 kB / 424.3 MB, free: 16.7 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002114/0.3994, allocations: 43.44 kB / 424.4 MB, free: 16.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008209/0.4002, allocations: 83.91 kB / 424.4 MB, free: 16.58 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002283/0.4005, allocations: 100.7 kB / 424.5 MB, free: 16.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.924e-05/0.4005, allocations: 39.98 kB / 424.6 MB, free: 16.44 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001315/0.4019, allocations: 1.066 MB / 425.6 MB, free: 15.38 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4019, allocations: 4 kB / 425.7 MB, free: 15.38 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001759/0.4036, allocations: 484.8 kB / 426.1 MB, free: 14.9 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * 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 (108): * Single equations (assignments): 104 * 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.004454/0.4081, allocations: 3.853 MB / 430 MB, free: 10.95 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003497/0.4116, allocations: 2.286 MB / 432.3 MB, free: 8.605 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/0.4116, allocations: 4 kB / 432.3 MB, free: 8.602 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001905/0.4136, allocations: 1.472 MB / 433.7 MB, free: 7.078 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002281/0.4159, allocations: 455.7 kB / 434.2 MB, free: 6.645 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03314/0.449, allocations: 20.58 MB / 454.8 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001524/0.4506, allocations: 1.87 MB / 456.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001263/0.4518, allocations: 386.9 kB / 457 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001056/0.4529, allocations: 0.8703 MB / 457.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4529, allocations: 4 kB / 457.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08729/0.5402, allocations: 43 MB / 0.4891 GB, free: 2.328 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002377/0.5405, allocations: 254.5 kB / 0.4894 GB, free: 2.02 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.823/3.363, allocations: 3.938 kB / 0.4894 GB, free: 2.016 MB / 382.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_Inverter/SMPM_Inverter.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches