Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_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.SMPM_Inverter,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_cpp_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/Complex trunk/package.mo): time 0.000871/0.000871, allocations: 197.4 kB / 17.38 MB, free: 4.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.152/1.152, allocations: 226.5 MB / 244.7 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007368/0.0007368, allocations: 102.5 kB / 296.7 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002109/0.0002109, allocations: 4 kB / 356.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1769/0.1772, allocations: 51.29 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.006511/0.1837, allocations: 9.135 MB / 417.3 MB, free: 18.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004142/0.1879, allocations: 3.275 MB / 420.5 MB, free: 15.26 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001019/0.1889, allocations: 55.75 kB / 420.6 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00117/0.1901, allocations: 0.6135 MB / 421.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001263/0.1914, allocations: 0.7224 MB / 421.9 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005057/0.1919, allocations: 279 kB / 422.2 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001582/0.1935, allocations: 2.829 MB / 425 MB, free: 10.75 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001541/0.195, allocations: 2.017 MB / 427.1 MB, free: 8.668 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007684/0.1958, allocations: 0.9493 MB / 428 MB, free: 7.715 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009323/0.1968, allocations: 1.28 MB / 429.3 MB, free: 6.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002022/0.197, allocations: 140 kB / 429.4 MB, free: 6.293 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004507/0.1974, allocations: 259.7 kB / 429.7 MB, free: 6.039 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004636/0.1979, allocations: 0.7009 MB / 430.4 MB, free: 5.336 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007491/0.1987, allocations: 1.226 MB / 431.6 MB, free: 4.098 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001734/0.2004, allocations: 3.506 MB / 435.1 MB, free: 0.582 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.2004, allocations: 3.938 kB / 435.1 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.2004, allocations: 0 / 435.1 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.764e-05/0.2004, allocations: 0 / 435.1 MB, free: 0.5781 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.003966/0.2044, allocations: 2.598 MB / 437.7 MB, free: 13.92 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.636e-05/0.2045, allocations: 8.031 kB / 437.7 MB, free: 13.91 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003382/0.2048, allocations: 321 kB / 438 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006665/0.2055, allocations: 321.4 kB / 438.3 MB, free: 13.27 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002066/0.2075, allocations: 1.575 MB / 439.9 MB, free: 11.64 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001348/0.2077, allocations: 180.3 kB / 440.1 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000274/0.208, allocations: 227.8 kB / 440.3 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004133/0.2121, allocations: 2.905 MB / 443.2 MB, free: 8.242 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.986e-05/0.2122, allocations: 15.94 kB / 443.2 MB, free: 8.227 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001772/0.2124, allocations: 88 kB / 443.3 MB, free: 8.141 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001022/0.2125, allocations: 108.3 kB / 443.4 MB, free: 8.031 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003635/0.2161, allocations: 2.445 MB / 445.9 MB, free: 5.57 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01119/0.2273, allocations: 9.156 MB / 455 MB, free: 12.12 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002018/0.2293, allocations: 1.72 MB / 456.7 MB, free: 10.28 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001584/0.2309, allocations: 1.008 MB / 457.8 MB, free: 9.277 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002373/0.2312, allocations: 203.2 kB / 458 MB, free: 9.039 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/0.2312, allocations: 47.55 kB / 458 MB, free: 8.984 MB / 330.7 MB Notification: Performance of pre-optimization done (n=105): time 2.374e-06/0.2312, allocations: 4 kB / 458 MB, free: 8.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=122): time 0.01253/0.2438, allocations: 6.685 MB / 464.7 MB, free: 2.133 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.402e-05/0.2438, allocations: 64.41 kB / 464.8 MB, free: 2.059 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001803/0.2456, allocations: 1.561 MB / 466.3 MB, free: 500 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.223e-05/0.2457, allocations: 49.64 kB / 466.4 MB, free: 444 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006602/0.2464, allocations: 1.1 MB / 467.5 MB, free: 15.32 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002698/0.2467, allocations: 433.8 kB / 467.9 MB, free: 14.89 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.62e-05/0.2467, allocations: 31.94 kB / 467.9 MB, free: 14.86 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.2469, allocations: 365.9 kB / 468.3 MB, free: 14.49 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00107/0.2479, allocations: 0.7144 MB / 469 MB, free: 13.78 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001284/0.2492, allocations: 1.146 MB / 470.1 MB, free: 12.45 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002496/0.2517, allocations: 1.983 MB / 472.1 MB, free: 10.28 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.683e-06/0.2518, allocations: 4 kB / 472.1 MB, free: 10.28 MB / 346.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.003663/0.2554, allocations: 2.534 MB / 474.7 MB, free: 7.703 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.2555, allocations: 12 kB / 474.7 MB, free: 7.691 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.2555, allocations: 16.28 kB / 474.7 MB, free: 7.676 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008734/0.2564, allocations: 422.8 kB / 475.1 MB, free: 7.254 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001184/0.2576, allocations: 367.4 kB / 475.5 MB, free: 6.895 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005822/0.2634, allocations: 6.546 MB / 482 MB, free: 15.94 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001018/0.2644, allocations: 107.8 kB / 482.1 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001033/0.2645, allocations: 71.98 kB / 482.2 MB, free: 15.77 MB / 362.7 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 (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%) 12,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009802/0.2655, allocations: 0.7144 MB / 482.9 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002318/0.2658, allocations: 173.9 kB / 483.1 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003455/0.2692, allocations: 2.217 MB / 485.3 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.317e-06/0.2693, allocations: 15.94 kB / 485.3 MB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-06/0.2693, allocations: 4 kB / 485.3 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/0.2693, allocations: 3.984 kB / 485.3 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007027/0.2763, allocations: 4.807 MB / 490.1 MB, free: 7.633 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.2763, allocations: 4 kB / 490.1 MB, free: 7.629 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009019/0.2772, allocations: 227.6 kB / 490.3 MB, free: 7.406 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001075/0.2783, allocations: 454.3 kB / 490.8 MB, free: 6.953 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.562e-05/0.2784, allocations: 31.98 kB / 490.8 MB, free: 6.922 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006759/0.2852, allocations: 7.988 MB / 498.8 MB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.2852, allocations: 4.094 kB / 498.8 MB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004464/0.2897, allocations: 3.243 MB / 0.4903 GB, free: 11.06 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006206/0.2903, allocations: 403 kB / 0.4907 GB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000219/0.2905, allocations: 35.98 kB / 0.4907 GB, free: 10.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008854/0.2914, allocations: 91.84 kB / 0.4908 GB, free: 10.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002512/0.2917, allocations: 96.81 kB / 0.4909 GB, free: 10.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.734e-05/0.2918, allocations: 39.98 kB / 0.4909 GB, free: 10.39 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001343/0.2931, allocations: 1.059 MB / 0.4919 GB, free: 9.332 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2931, allocations: 0 / 0.4919 GB, free: 9.332 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001405/0.2945, allocations: 491.9 kB / 0.4924 GB, free: 8.852 MB / 378.7 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 (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%) 12,(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.004876/0.2994, allocations: 3.886 MB / 0.4962 GB, free: 4.863 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003504/0.3029, allocations: 2.309 MB / 0.4985 GB, free: 2.492 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.303, allocations: 8.75 kB / 0.4985 GB, free: 2.484 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002243/0.3052, allocations: 1.477 MB / 0.4999 GB, free: 0.957 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002884/0.3081, allocations: 457.5 kB / 0.5004 GB, free: 0.5195 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1605/0.4686, allocations: 14.37 MB / 0.5144 GB, free: 85.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00112/0.4698, allocations: 1.838 MB / 0.5162 GB, free: 84.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009322/0.4707, allocations: 0.89 MB / 0.517 GB, free: 84.22 MB / 378.7 MB Notification: Performance of SimCode: time 5.91e-07/0.4707, allocations: 0 / 0.517 GB, free: 84.22 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.905/6.376, allocations: 80.28 MB / 0.5954 GB, free: 4.551 MB / 378.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches