Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_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.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_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.001021/0.001021, allocations: 101.4 kB / 17.3 MB, free: 6.344 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.001022/0.001022, allocations: 178.5 kB / 18.2 MB, free: 5.531 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.413/1.413, allocations: 205.4 MB / 224.4 MB, free: 13.06 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.0004598/0.0004601, allocations: 11.94 kB / 281.5 MB, free: 3.312 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1228, allocations: 47.58 MB / 329.1 MB, free: 3.664 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.01438/0.1373, allocations: 8.999 MB / 338.1 MB, free: 10.62 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005978/0.1433, allocations: 3.082 MB / 341.1 MB, free: 7.523 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001163/0.1445, allocations: 43.75 kB / 341.2 MB, free: 7.48 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001584/0.1461, allocations: 0.5905 MB / 341.8 MB, free: 6.887 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002056/0.1481, allocations: 0.6838 MB / 342.5 MB, free: 6.199 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007725/0.1489, allocations: 351.6 kB / 342.8 MB, free: 5.855 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002972/0.1519, allocations: 2.872 MB / 345.7 MB, free: 2.973 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002182/0.1541, allocations: 1.914 MB / 347.6 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001269/0.1554, allocations: 0.8867 MB / 348.5 MB, free: 108 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001481/0.1569, allocations: 1.257 MB / 349.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002292/0.1571, allocations: 140 kB / 349.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005295/0.1576, allocations: 247.8 kB / 350.1 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006189/0.1583, allocations: 0.6812 MB / 350.8 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001109/0.1594, allocations: 1.198 MB / 352 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003864/0.1633, allocations: 3.881 MB / 355.9 MB, free: 8.676 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.1633, allocations: 3.938 kB / 355.9 MB, free: 8.672 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.916e-06/0.1633, allocations: 0 / 355.9 MB, free: 8.672 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001306/0.1634, allocations: 0 / 355.9 MB, free: 8.672 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.006137/0.1696, allocations: 2.464 MB / 358.3 MB, free: 6.145 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.772e-05/0.1697, allocations: 8.031 kB / 358.3 MB, free: 6.137 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005786/0.1703, allocations: 312.2 kB / 358.7 MB, free: 5.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007746/0.1711, allocations: 285.7 kB / 358.9 MB, free: 5.539 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00253/0.1736, allocations: 1.433 MB / 360.4 MB, free: 4.047 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001708/0.1738, allocations: 176.3 kB / 360.5 MB, free: 3.871 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003125/0.1741, allocations: 211.9 kB / 360.7 MB, free: 3.664 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005012/0.1791, allocations: 2.807 MB / 363.5 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.012e-05/0.1792, allocations: 7.906 kB / 363.6 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002112/0.1794, allocations: 88 kB / 363.6 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001254/0.1795, allocations: 104.2 kB / 363.7 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004413/0.184, allocations: 2.366 MB / 366.1 MB, free: 14.19 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01439/0.1984, allocations: 8.64 MB / 374.8 MB, free: 5.301 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002595/0.201, allocations: 1.722 MB / 376.5 MB, free: 3.461 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001773/0.2028, allocations: 0.9801 MB / 377.5 MB, free: 2.477 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000338/0.2032, allocations: 203.2 kB / 377.7 MB, free: 2.238 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.847e-05/0.2032, allocations: 51.5 kB / 377.7 MB, free: 2.18 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 6.583e-06/0.2032, allocations: 0 / 377.7 MB, free: 2.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.2399/0.4431, allocations: 6.205 MB / 383.9 MB, free: 49.81 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.079e-05/0.4433, allocations: 66.66 kB / 384 MB, free: 49.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003418/0.4467, allocations: 1.44 MB / 385.4 MB, free: 49.5 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001123/0.4468, allocations: 46.2 kB / 385.5 MB, free: 49.45 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008656/0.4477, allocations: 1.042 MB / 386.5 MB, free: 48.65 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004169/0.4481, allocations: 411.3 kB / 386.9 MB, free: 48.34 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002042/0.4483, allocations: 114.6 kB / 387 MB, free: 48.28 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.4485, allocations: 366.2 kB / 387.4 MB, free: 47.95 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001414/0.45, allocations: 0.6933 MB / 388.1 MB, free: 47.72 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001829/0.4518, allocations: 1.083 MB / 389.1 MB, free: 47.01 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003207/0.455, allocations: 1.884 MB / 391 MB, free: 45.94 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-05/0.455, allocations: 3.875 kB / 391 MB, free: 45.94 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.005026/0.4601, allocations: 2.427 MB / 393.5 MB, free: 44.93 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.42e-05/0.4601, allocations: 11.78 kB / 393.5 MB, free: 44.93 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.338e-05/0.4602, allocations: 11.78 kB / 393.5 MB, free: 44.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001088/0.4612, allocations: 413.2 kB / 393.9 MB, free: 44.8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001292/0.4626, allocations: 334.2 kB / 394.2 MB, free: 44.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006296/0.4689, allocations: 6.469 MB / 400.7 MB, free: 39.74 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00168/0.4706, allocations: 121.3 kB / 400.8 MB, free: 39.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001043/0.4707, allocations: 55.44 kB / 400.9 MB, free: 39.69 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (157): * Single equations (assignments): 153 * 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,11,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.001684/0.4724, allocations: 0.6919 MB / 401.5 MB, free: 39.3 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004242/0.4728, allocations: 154.9 kB / 401.7 MB, free: 39.22 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003754/0.4766, allocations: 2.144 MB / 403.8 MB, free: 38.17 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.159e-05/0.4766, allocations: 11.28 kB / 403.9 MB, free: 38.17 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.906e-06/0.4766, allocations: 7.875 kB / 403.9 MB, free: 38.17 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.375e-05/0.4766, allocations: 7.969 kB / 403.9 MB, free: 38.16 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006822/0.4835, allocations: 4.604 MB / 408.5 MB, free: 34.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.101e-05/0.4835, allocations: 4 kB / 408.5 MB, free: 34.1 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008154/0.4843, allocations: 216.2 kB / 408.7 MB, free: 33.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001019/0.4854, allocations: 451.9 kB / 409.1 MB, free: 33.44 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8e-05/0.4855, allocations: 39.98 kB / 409.2 MB, free: 33.4 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006346/0.4918, allocations: 7.918 MB / 417.1 MB, free: 24.98 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.4918, allocations: 7.938 kB / 417.1 MB, free: 24.97 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004599/0.4964, allocations: 3.14 MB / 420.2 MB, free: 21.74 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001225/0.4977, allocations: 379 kB / 420.6 MB, free: 21.35 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001994/0.4979, allocations: 39.98 kB / 420.6 MB, free: 21.31 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008686/0.4988, allocations: 87.91 kB / 420.7 MB, free: 21.22 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002937/0.4991, allocations: 96.75 kB / 420.8 MB, free: 21.13 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.496e-05/0.4992, allocations: 39.98 kB / 420.9 MB, free: 21.09 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001513/0.5007, allocations: 0.9886 MB / 421.9 MB, free: 20.1 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5007, allocations: 0 / 421.9 MB, free: 20.1 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0021/0.5028, allocations: 454.8 kB / 422.3 MB, free: 19.66 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],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 (103): * Single equations (assignments): 99 * 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,11,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.005069/0.5079, allocations: 3.783 MB / 426.1 MB, free: 15.78 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004095/0.512, allocations: 2.235 MB / 428.3 MB, free: 13.48 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.387e-06/0.5121, allocations: 0 / 428.3 MB, free: 13.48 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002162/0.5143, allocations: 1.456 MB / 429.8 MB, free: 11.98 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003347/0.5176, allocations: 396.5 kB / 430.2 MB, free: 11.6 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03343/0.5511, allocations: 19.42 MB / 449.6 MB, free: 6.988 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001812/0.5529, allocations: 1.807 MB / 451.4 MB, free: 5.148 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001273/0.5542, allocations: 369.5 kB / 451.7 MB, free: 4.781 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001026/0.5553, allocations: 0.8117 MB / 452.6 MB, free: 3.969 MB / 334.1 MB Notification: Performance of SimCode: time 1.172e-06/0.5553, allocations: 0 / 452.6 MB, free: 3.969 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07584/0.6311, allocations: 39.29 MB / 491.9 MB, free: 12.62 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003066/0.6315, allocations: 268.4 kB / 492.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.951/3.582, allocations: 0 / 492.1 MB, free: 12.31 MB / 382.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_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/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches