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.0008252/0.0008256, allocations: 96.55 kB / 17.3 MB, free: 6.387 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.000882/0.0008822, allocations: 176.8 kB / 18.21 MB, free: 5.551 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.688/1.688, allocations: 205.4 MB / 224.4 MB, free: 13.09 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.0004729/0.0004732, allocations: 12.47 kB / 281.5 MB, free: 3.32 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1076, allocations: 47.58 MB / 329.1 MB, free: 3.672 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01123/0.1189, allocations: 9.653 MB / 338.7 MB, free: 9.973 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007147/0.1261, allocations: 3.421 MB / 342.1 MB, free: 6.535 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00164/0.1278, allocations: 43.75 kB / 342.2 MB, free: 6.492 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002053/0.1299, allocations: 0.672 MB / 342.8 MB, free: 5.816 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002912/0.1328, allocations: 0.7459 MB / 343.6 MB, free: 5.066 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001182/0.134, allocations: 383.6 kB / 344 MB, free: 4.691 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004444/0.1385, allocations: 3.086 MB / 347.1 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002534/0.141, allocations: 1.977 MB / 349 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002076/0.1431, allocations: 0.9607 MB / 350 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002339/0.1455, allocations: 1.33 MB / 351.3 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003229/0.1458, allocations: 140 kB / 351.5 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007623/0.1466, allocations: 263.7 kB / 351.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007195/0.1473, allocations: 0.7124 MB / 352.4 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001511/0.1488, allocations: 1.276 MB / 353.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004251/0.1531, allocations: 4.095 MB / 357.8 MB, free: 6.746 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.1531, allocations: 0 / 357.8 MB, free: 6.746 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.1531, allocations: 0 / 357.8 MB, free: 6.746 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001411/0.1533, allocations: 4 kB / 357.8 MB, free: 6.742 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.006126/0.1594, allocations: 2.586 MB / 360.4 MB, free: 4.094 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.674e-05/0.1595, allocations: 12.03 kB / 360.4 MB, free: 4.082 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007537/0.1602, allocations: 324.9 kB / 360.7 MB, free: 3.754 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008792/0.1611, allocations: 309.4 kB / 361 MB, free: 3.449 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00255/0.1637, allocations: 1.516 MB / 362.5 MB, free: 1.875 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001717/0.1639, allocations: 180.3 kB / 362.7 MB, free: 1.695 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003466/0.1642, allocations: 223.9 kB / 362.9 MB, free: 1.477 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005391/0.1696, allocations: 2.925 MB / 365.9 MB, free: 14.46 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.063e-05/0.1697, allocations: 11.91 kB / 365.9 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000213/0.17, allocations: 84 kB / 366 MB, free: 14.37 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001268/0.1701, allocations: 112.3 kB / 366.1 MB, free: 14.26 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004458/0.1746, allocations: 2.453 MB / 368.5 MB, free: 11.79 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01637/0.1909, allocations: 9.16 MB / 377.7 MB, free: 2.344 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002614/0.1936, allocations: 1.721 MB / 379.4 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2047/0.3983, allocations: 0.993 MB / 380.4 MB, free: 45.25 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002946/0.3986, allocations: 202.6 kB / 380.6 MB, free: 45.06 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.981e-05/0.3987, allocations: 46.03 kB / 380.6 MB, free: 45.02 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 3.737e-06/0.3987, allocations: 2.031 kB / 380.6 MB, free: 45.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01632/0.415, allocations: 6.659 MB / 387.3 MB, free: 43.8 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.134e-05/0.4152, allocations: 67.97 kB / 387.4 MB, free: 43.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003003/0.4182, allocations: 1.565 MB / 388.9 MB, free: 43.55 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001019/0.4183, allocations: 46.36 kB / 389 MB, free: 43.52 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008167/0.4191, allocations: 1.111 MB / 390.1 MB, free: 42.79 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003233/0.4194, allocations: 430.5 kB / 390.5 MB, free: 42.46 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001928/0.4196, allocations: 119.8 kB / 390.6 MB, free: 42.4 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.472e-05/0.4197, allocations: 305.7 kB / 390.9 MB, free: 42.1 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001263/0.421, allocations: 0.7209 MB / 391.6 MB, free: 41.85 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001471/0.4225, allocations: 1.154 MB / 392.8 MB, free: 41.07 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00261/0.4251, allocations: 1.988 MB / 394.8 MB, free: 39.95 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.528e-06/0.4251, allocations: 4.125 kB / 394.8 MB, free: 39.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004858/0.43, allocations: 2.542 MB / 397.3 MB, free: 38.97 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.205e-05/0.43, allocations: 11.53 kB / 397.3 MB, free: 38.97 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.089e-05/0.4301, allocations: 17.38 kB / 397.4 MB, free: 38.97 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009396/0.431, allocations: 422.8 kB / 397.8 MB, free: 38.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00113/0.4321, allocations: 350.9 kB / 398.1 MB, free: 38.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005683/0.4378, allocations: 6.548 MB / 404.7 MB, free: 33.79 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00164/0.4395, allocations: 121 kB / 404.8 MB, free: 33.76 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001118/0.4396, allocations: 63.19 kB / 404.8 MB, free: 33.75 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.001704/0.4413, allocations: 0.7152 MB / 405.6 MB, free: 33.35 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004141/0.4418, allocations: 173.1 kB / 405.7 MB, free: 33.26 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003357/0.4451, allocations: 2.207 MB / 407.9 MB, free: 31.79 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.746e-06/0.4451, allocations: 12 kB / 407.9 MB, free: 31.77 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.4452, allocations: 6.078 kB / 407.9 MB, free: 31.77 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.4452, allocations: 11.97 kB / 408 MB, free: 31.76 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00717/0.4524, allocations: 4.815 MB / 412.8 MB, free: 26.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.789e-06/0.4524, allocations: 4 kB / 412.8 MB, free: 26.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008511/0.4533, allocations: 229.8 kB / 413 MB, free: 26.6 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009858/0.4543, allocations: 457 kB / 413.4 MB, free: 26.14 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.772e-05/0.4543, allocations: 39.98 kB / 413.5 MB, free: 26.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005541/0.4599, allocations: 7.979 MB / 421.5 MB, free: 17.6 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.167e-06/0.4599, allocations: 7.938 kB / 421.5 MB, free: 17.59 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004379/0.4643, allocations: 3.244 MB / 424.7 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007136/0.465, allocations: 412.9 kB / 425.1 MB, free: 13.83 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002032/0.4652, allocations: 35.98 kB / 425.2 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008489/0.4661, allocations: 91.91 kB / 425.2 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00021/0.4663, allocations: 106.7 kB / 425.3 MB, free: 13.6 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.752e-05/0.4664, allocations: 39.98 kB / 425.4 MB, free: 13.56 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001343/0.4677, allocations: 1.07 MB / 426.5 MB, free: 12.49 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4678, allocations: 0 / 426.5 MB, free: 12.49 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001804/0.4696, allocations: 480 kB / 426.9 MB, free: 12.02 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.004439/0.474, allocations: 3.9 MB / 430.8 MB, free: 8.027 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003158/0.4772, allocations: 2.304 MB / 433.1 MB, free: 5.668 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.848e-06/0.4772, allocations: 320 / 433.1 MB, free: 5.668 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001893/0.4791, allocations: 1.484 MB / 434.6 MB, free: 4.133 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003191/0.4823, allocations: 459 kB / 435.1 MB, free: 3.688 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03345/0.5158, allocations: 20.77 MB / 455.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00175/0.5176, allocations: 1.867 MB / 457.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001374/0.519, allocations: 390.8 kB / 458.1 MB, free: 11.15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001111/0.5201, allocations: 0.8703 MB / 458.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of SimCode: time 1.393e-06/0.5201, allocations: 0 / 458.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07514/0.5953, allocations: 42.4 MB / 0.4896 GB, free: 15.83 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002069/0.5955, allocations: 261.8 kB / 0.4898 GB, free: 15.53 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.936/3.531, allocations: 0 / 0.4898 GB, free: 15.53 MB / 398.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