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: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009715/0.0009715, allocations: 191.2 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 226.6 MB / 244.7 MB, free: 6.441 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007654/0.0007655, allocations: 98.66 kB / 296.8 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003002/0.0003003, allocations: 4 kB / 356.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2337/0.234, allocations: 51.28 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.006698/0.2408, allocations: 9.136 MB / 417.2 MB, free: 18.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004329/0.2451, allocations: 3.276 MB / 420.5 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007774/0.2459, allocations: 51.75 kB / 420.5 MB, free: 15.22 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001188/0.2471, allocations: 0.6252 MB / 421.1 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001388/0.2485, allocations: 0.7108 MB / 421.8 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005567/0.2491, allocations: 267.6 kB / 422.1 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001756/0.2508, allocations: 2.834 MB / 424.9 MB, free: 10.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00164/0.2525, allocations: 2.021 MB / 427 MB, free: 8.688 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008627/0.2534, allocations: 0.9571 MB / 427.9 MB, free: 7.727 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0011/0.2545, allocations: 1.276 MB / 429.2 MB, free: 6.445 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002181/0.2547, allocations: 140 kB / 429.3 MB, free: 6.309 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005101/0.2552, allocations: 259.7 kB / 429.6 MB, free: 6.055 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004815/0.2557, allocations: 0.7009 MB / 430.3 MB, free: 5.352 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008083/0.2565, allocations: 1.218 MB / 431.5 MB, free: 4.121 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001954/0.2585, allocations: 3.518 MB / 435 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2585, allocations: 0 / 435 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.524e-06/0.2585, allocations: 0 / 435 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.036e-05/0.2586, allocations: 7.938 kB / 435 MB, free: 0.5859 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.004405/0.263, allocations: 2.59 MB / 437.6 MB, free: 13.93 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.263, allocations: 12.03 kB / 437.6 MB, free: 13.92 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007491/0.2638, allocations: 317.4 kB / 437.9 MB, free: 13.61 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002429/0.2662, allocations: 1.579 MB / 439.5 MB, free: 11.97 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001473/0.2664, allocations: 180.5 kB / 439.7 MB, free: 11.79 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000312/0.2667, allocations: 227.9 kB / 439.9 MB, free: 11.57 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004613/0.2713, allocations: 2.913 MB / 442.8 MB, free: 8.57 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.56e-05/0.2714, allocations: 11.94 kB / 442.8 MB, free: 8.559 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001977/0.2716, allocations: 88 kB / 442.9 MB, free: 8.473 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001155/0.2717, allocations: 108.3 kB / 443 MB, free: 8.363 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004052/0.2758, allocations: 2.437 MB / 445.5 MB, free: 5.91 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01318/0.289, allocations: 9.16 MB / 454.6 MB, free: 12.46 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002265/0.2913, allocations: 1.724 MB / 456.4 MB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00166/0.2929, allocations: 1.004 MB / 457.4 MB, free: 9.617 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002711/0.2932, allocations: 211.2 kB / 457.6 MB, free: 9.371 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.845e-05/0.2933, allocations: 43.56 kB / 457.6 MB, free: 9.32 MB / 330.7 MB Notification: Performance of pre-optimization done (n=105): time 2.655e-06/0.2933, allocations: 0 / 457.6 MB, free: 9.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=122): time 0.01326/0.3066, allocations: 6.688 MB / 464.3 MB, free: 2.469 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.274e-05/0.3066, allocations: 64.41 kB / 464.4 MB, free: 2.395 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002089/0.3087, allocations: 1.557 MB / 465.9 MB, free: 0.8281 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.062e-05/0.3088, allocations: 45.7 kB / 466 MB, free: 0.7773 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000726/0.3096, allocations: 1.108 MB / 467.1 MB, free: 15.65 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003145/0.3099, allocations: 433.8 kB / 467.5 MB, free: 15.22 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.644e-05/0.31, allocations: 31.94 kB / 467.5 MB, free: 15.19 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.3101, allocations: 365.9 kB / 467.9 MB, free: 14.82 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001165/0.3113, allocations: 0.7183 MB / 468.6 MB, free: 14.11 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001421/0.3127, allocations: 1.142 MB / 469.7 MB, free: 12.78 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002745/0.3155, allocations: 1.979 MB / 471.7 MB, free: 10.62 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.3155, allocations: 4 kB / 471.7 MB, free: 10.61 MB / 346.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004198/0.3197, allocations: 2.534 MB / 474.3 MB, free: 8.039 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.496e-05/0.3198, allocations: 12 kB / 474.3 MB, free: 8.027 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.622e-05/0.3198, allocations: 12 kB / 474.3 MB, free: 8.016 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009708/0.3208, allocations: 425.8 kB / 474.7 MB, free: 7.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001239/0.322, allocations: 351.5 kB / 475 MB, free: 7.246 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006509/0.3285, allocations: 6.562 MB / 481.6 MB, free: 288 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00125/0.3298, allocations: 111.8 kB / 481.7 MB, free: 176 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001064/0.3299, allocations: 64 kB / 481.8 MB, free: 112 kB / 346.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.00127/0.3312, allocations: 0.7145 MB / 482.5 MB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000279/0.3315, allocations: 173.9 kB / 482.7 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003675/0.3352, allocations: 2.214 MB / 484.9 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.338e-05/0.3352, allocations: 19.97 kB / 484.9 MB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.3352, allocations: 8 kB / 484.9 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.153e-05/0.3352, allocations: 3.984 kB / 484.9 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007527/0.3428, allocations: 4.803 MB / 489.7 MB, free: 7.973 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.099e-05/0.3428, allocations: 4 kB / 489.7 MB, free: 7.969 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009619/0.3438, allocations: 228.1 kB / 489.9 MB, free: 7.746 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001115/0.3449, allocations: 450 kB / 490.4 MB, free: 7.297 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.374e-05/0.345, allocations: 35.98 kB / 490.4 MB, free: 7.262 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007661/0.3527, allocations: 7.988 MB / 498.4 MB, free: 14.74 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.3527, allocations: 4 kB / 498.4 MB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005288/0.358, allocations: 3.247 MB / 0.4899 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009608/0.359, allocations: 407 kB / 0.4903 GB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003686/0.3594, allocations: 28 kB / 0.4903 GB, free: 10.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/0.3604, allocations: 95.83 kB / 0.4904 GB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002322/0.3607, allocations: 96.81 kB / 0.4905 GB, free: 10.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.666e-05/0.3608, allocations: 43.92 kB / 0.4905 GB, free: 10.72 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001841/0.3626, allocations: 1.059 MB / 0.4916 GB, free: 9.664 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3626, allocations: 0 / 0.4916 GB, free: 9.664 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001775/0.3644, allocations: 492 kB / 0.492 GB, free: 9.184 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.0004025/0.3648, allocations: 194.9 kB / 0.4922 GB, free: 8.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003698/0.3685, allocations: 2.304 MB / 0.4945 GB, free: 6.617 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.3685, allocations: 4 kB / 0.4945 GB, free: 6.613 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002359/0.3709, allocations: 1.482 MB / 0.4959 GB, free: 5.082 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002859/0.3738, allocations: 443.5 kB / 0.4963 GB, free: 4.656 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1797/0.5534, allocations: 5.635 MB / 0.5018 GB, free: 90.86 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002343/0.5558, allocations: 1.845 MB / 0.5036 GB, free: 90.14 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007736/0.5566, allocations: 134.1 kB / 0.5038 GB, free: 90.13 MB / 378.7 MB Notification: Performance of SimCode: time 7.02e-07/0.5566, allocations: 0 / 0.5038 GB, free: 90.13 MB / 378.7 MB Notification: Performance of Templates: time 0.08239/0.639, allocations: 73.33 MB / 0.5754 GB, free: 25.1 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (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 & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter --alarm=480 -emit_protected > 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/jenkins/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