Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008883/0.0008884, allocations: 202.5 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.163/1.163, allocations: 226.5 MB / 244.7 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007476/0.0007476, allocations: 98.34 kB / 296.7 MB, free: 6.707 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001979/0.0001979, allocations: 8 kB / 356.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1584/0.1587, allocations: 51.29 MB / 408.1 MB, free: 27.6 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.005655/0.1644, allocations: 8.524 MB / 416.7 MB, free: 19.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003527/0.1679, allocations: 2.963 MB / 419.6 MB, free: 16.1 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000848/0.1688, allocations: 51.75 kB / 419.7 MB, free: 16.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001051/0.1698, allocations: 0.5358 MB / 420.2 MB, free: 15.51 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001313/0.1712, allocations: 0.6564 MB / 420.9 MB, free: 14.85 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004841/0.1717, allocations: 259.6 kB / 421.1 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001403/0.1731, allocations: 2.623 MB / 423.7 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001423/0.1745, allocations: 1.965 MB / 425.7 MB, free: 9.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000587/0.1751, allocations: 0.8793 MB / 426.6 MB, free: 9.047 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008305/0.1759, allocations: 1.214 MB / 427.8 MB, free: 7.828 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001762/0.1761, allocations: 132 kB / 427.9 MB, free: 7.699 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004092/0.1765, allocations: 247.8 kB / 428.2 MB, free: 7.457 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004137/0.177, allocations: 0.6697 MB / 428.8 MB, free: 6.785 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000623/0.1776, allocations: 1.145 MB / 430 MB, free: 5.629 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001529/0.1791, allocations: 3.327 MB / 433.3 MB, free: 2.293 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1791, allocations: 4 kB / 433.3 MB, free: 2.289 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1791, allocations: 3.938 kB / 433.3 MB, free: 2.285 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.169e-05/0.1792, allocations: 0 / 433.3 MB, free: 2.285 MB / 298.7 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.003247/0.1824, allocations: 2.476 MB / 435.8 MB, free: 15.74 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.153e-05/0.1825, allocations: 8.031 kB / 435.8 MB, free: 15.73 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003203/0.1828, allocations: 312.2 kB / 436.1 MB, free: 15.42 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005821/0.1834, allocations: 301.6 kB / 436.4 MB, free: 15.12 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001834/0.1852, allocations: 1.488 MB / 437.9 MB, free: 13.57 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001219/0.1854, allocations: 176.3 kB / 438.1 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002508/0.1856, allocations: 207.9 kB / 438.3 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003705/0.1893, allocations: 2.792 MB / 441.1 MB, free: 10.32 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.255e-05/0.1894, allocations: 0 / 441.1 MB, free: 10.32 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001668/0.1895, allocations: 91.98 kB / 441.2 MB, free: 10.23 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.194e-05/0.1896, allocations: 112.1 kB / 441.3 MB, free: 10.11 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003271/0.1929, allocations: 2.355 MB / 443.6 MB, free: 7.742 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009873/0.2028, allocations: 8.64 MB / 452.3 MB, free: 14.85 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001975/0.2048, allocations: 1.711 MB / 454 MB, free: 13.02 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001469/0.2063, allocations: 0.9908 MB / 455 MB, free: 12.03 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002238/0.2065, allocations: 203.2 kB / 455.2 MB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.988e-05/0.2065, allocations: 51.42 kB / 455.2 MB, free: 11.73 MB / 330.7 MB Notification: Performance of pre-optimization done (n=101): time 1.843e-06/0.2066, allocations: 3.938 kB / 455.2 MB, free: 11.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=116): time 0.01065/0.2172, allocations: 6.332 MB / 461.5 MB, free: 5.234 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.161e-05/0.2173, allocations: 68.34 kB / 461.6 MB, free: 5.152 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001513/0.2188, allocations: 1.433 MB / 463 MB, free: 3.707 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.331e-05/0.2188, allocations: 45.7 kB / 463.1 MB, free: 3.656 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005606/0.2194, allocations: 1.045 MB / 464.1 MB, free: 2.598 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002391/0.2197, allocations: 406.1 kB / 464.5 MB, free: 2.195 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.718e-05/0.2197, allocations: 28 kB / 464.6 MB, free: 2.168 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.2198, allocations: 361.9 kB / 464.9 MB, free: 1.809 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009652/0.2208, allocations: 0.691 MB / 465.6 MB, free: 1.117 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001144/0.222, allocations: 1.081 MB / 466.7 MB, free: 15.88 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002209/0.2242, allocations: 1.879 MB / 468.6 MB, free: 13.84 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.2242, allocations: 4 kB / 468.6 MB, free: 13.83 MB / 346.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003253/0.2275, allocations: 2.425 MB / 471 MB, free: 11.37 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.2275, allocations: 8 kB / 471 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/0.2275, allocations: 20.17 kB / 471 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008013/0.2283, allocations: 411.1 kB / 471.4 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001029/0.2294, allocations: 343.5 kB / 471.8 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005229/0.2346, allocations: 6.45 MB / 478.2 MB, free: 3.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008129/0.2354, allocations: 107.9 kB / 478.3 MB, free: 3.625 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.148e-05/0.2355, allocations: 63.98 kB / 478.4 MB, free: 3.562 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 11,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007704/0.2363, allocations: 0.6847 MB / 479.1 MB, free: 2.867 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001858/0.2365, allocations: 158 kB / 479.2 MB, free: 2.711 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003063/0.2396, allocations: 2.15 MB / 481.4 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.737e-06/0.2396, allocations: 12 kB / 481.4 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.2396, allocations: 4 kB / 481.4 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.227e-05/0.2396, allocations: 11.91 kB / 481.4 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005945/0.2456, allocations: 4.603 MB / 486 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.461e-06/0.2456, allocations: 11.97 kB / 486 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008073/0.2464, allocations: 215.7 kB / 486.2 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009421/0.2474, allocations: 450.1 kB / 486.7 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.047e-05/0.2474, allocations: 31.98 kB / 486.7 MB, free: 11.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006125/0.2536, allocations: 7.928 MB / 494.6 MB, free: 2.598 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.2536, allocations: 4 kB / 494.6 MB, free: 2.594 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003915/0.2575, allocations: 3.125 MB / 497.7 MB, free: 15.37 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004812/0.258, allocations: 390.8 kB / 498.1 MB, free: 14.97 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001664/0.2582, allocations: 31.94 kB / 498.2 MB, free: 14.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007394/0.2589, allocations: 91.91 kB / 498.2 MB, free: 14.85 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002243/0.2592, allocations: 100.7 kB / 498.3 MB, free: 14.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.64e-05/0.2592, allocations: 32 kB / 498.4 MB, free: 14.72 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001073/0.2603, allocations: 0.9849 MB / 499.4 MB, free: 13.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2603, allocations: 0 / 499.4 MB, free: 13.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001088/0.2614, allocations: 456 kB / 499.8 MB, free: 13.29 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 11,(1,100.0%) 6,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004313/0.2657, allocations: 3.761 MB / 0.4918 GB, free: 9.434 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002844/0.2686, allocations: 2.228 MB / 0.4939 GB, free: 7.148 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.2686, allocations: 4 kB / 0.4939 GB, free: 7.145 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001894/0.2705, allocations: 1.45 MB / 0.4954 GB, free: 5.641 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00198/0.2725, allocations: 402.7 kB / 0.4957 GB, free: 5.254 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.137/0.4095, allocations: 13.52 MB / 0.5089 GB, free: 88.59 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000957/0.4105, allocations: 1.782 MB / 0.5107 GB, free: 87.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007727/0.4113, allocations: 0.8221 MB / 0.5115 GB, free: 87.05 MB / 378.7 MB Notification: Performance of SimCode: time 5.51e-07/0.4113, allocations: 0 / 0.5115 GB, free: 87.05 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.069/7.48, allocations: 75.38 MB / 0.5851 GB, free: 15.02 MB / 378.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches