Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00107/0.001071, allocations: 178.1 kB / 17.04 MB, free: 5.109 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.171/1.171, allocations: 223.3 MB / 241 MB, free: 10.1 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007413/0.0007413, allocations: 95.86 kB / 292.2 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002287/0.0002288, allocations: 11.94 kB / 351.8 MB, free: 15.1 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1722/0.1725, allocations: 50.4 MB / 402.2 MB, free: 32.58 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.006289/0.1788, allocations: 9.113 MB / 411.3 MB, free: 23.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004184/0.183, allocations: 3.222 MB / 414.5 MB, free: 20.22 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007447/0.1838, allocations: 51.75 kB / 414.6 MB, free: 20.17 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001094/0.1849, allocations: 0.6174 MB / 415.2 MB, free: 19.55 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001193/0.1861, allocations: 0.7069 MB / 415.9 MB, free: 18.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004809/0.1866, allocations: 267.6 kB / 416.2 MB, free: 18.58 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001519/0.1881, allocations: 2.782 MB / 419 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001276/0.1894, allocations: 1.587 MB / 420.5 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007375/0.1901, allocations: 0.9376 MB / 421.5 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009913/0.1911, allocations: 1.28 MB / 422.8 MB, free: 11.94 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001987/0.1913, allocations: 140 kB / 422.9 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004173/0.1918, allocations: 215.9 kB / 423.1 MB, free: 11.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004198/0.1922, allocations: 0.7086 MB / 423.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002854/0.1925, allocations: 0.5199 MB / 424.3 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001729/0.1942, allocations: 3.506 MB / 427.8 MB, free: 6.836 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1942, allocations: 0 / 427.8 MB, free: 6.836 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1942, allocations: 0 / 427.8 MB, free: 6.836 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.842e-05/0.1943, allocations: 0 / 427.8 MB, free: 6.836 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.003597/0.1979, allocations: 2.625 MB / 430.5 MB, free: 4.148 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.946e-05/0.1979, allocations: 16.03 kB / 430.5 MB, free: 4.133 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005643/0.1985, allocations: 308.5 kB / 430.8 MB, free: 3.828 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0018/0.2003, allocations: 1.524 MB / 432.3 MB, free: 2.246 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001037/0.2004, allocations: 172.4 kB / 432.5 MB, free: 2.074 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002313/0.2006, allocations: 227.9 kB / 432.7 MB, free: 1.852 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00389/0.2045, allocations: 2.921 MB / 435.6 MB, free: 14.84 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.359e-05/0.2046, allocations: 7.906 kB / 435.6 MB, free: 14.84 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001851/0.2048, allocations: 88 kB / 435.7 MB, free: 14.75 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001065/0.2049, allocations: 112.3 kB / 435.8 MB, free: 14.64 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003784/0.2087, allocations: 2.445 MB / 438.3 MB, free: 12.18 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01228/0.221, allocations: 9.141 MB / 447.4 MB, free: 2.746 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002175/0.2232, allocations: 1.726 MB / 449.1 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001664/0.2249, allocations: 1.008 MB / 450.1 MB, free: 15.9 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002591/0.2251, allocations: 203.2 kB / 450.3 MB, free: 15.66 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.376e-05/0.2252, allocations: 51.55 kB / 450.4 MB, free: 15.6 MB / 330.7 MB Notification: Performance of pre-optimization done (n=105): time 2.645e-06/0.2252, allocations: 384 / 450.4 MB, free: 15.6 MB / 330.7 MB Notification: Performance of matching and sorting (n=122): time 0.01282/0.238, allocations: 6.679 MB / 457.1 MB, free: 8.754 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.642e-05/0.2381, allocations: 64.41 kB / 457.1 MB, free: 8.68 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001962/0.24, allocations: 1.557 MB / 458.7 MB, free: 7.113 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.583e-05/0.2401, allocations: 41.7 kB / 458.7 MB, free: 7.066 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007143/0.2408, allocations: 1.119 MB / 459.9 MB, free: 5.93 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002983/0.2412, allocations: 425.8 kB / 460.3 MB, free: 5.508 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.141e-05/0.2412, allocations: 28 kB / 460.3 MB, free: 5.48 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.2414, allocations: 365.9 kB / 460.7 MB, free: 5.117 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001096/0.2425, allocations: 0.7183 MB / 461.4 MB, free: 4.398 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001337/0.2438, allocations: 1.142 MB / 462.5 MB, free: 3.078 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001322/0.2452, allocations: 0.8965 MB / 463.4 MB, free: 2.18 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.2452, allocations: 4 kB / 463.4 MB, free: 2.176 MB / 330.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.003785/0.249, allocations: 2.526 MB / 465.9 MB, free: 15.6 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.249, allocations: 8 kB / 465.9 MB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/0.249, allocations: 16.28 kB / 466 MB, free: 15.58 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000903/0.2499, allocations: 435 kB / 466.4 MB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001179/0.2511, allocations: 351.5 kB / 466.7 MB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006081/0.2572, allocations: 6.56 MB / 473.3 MB, free: 7.836 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00109/0.2583, allocations: 111.8 kB / 473.4 MB, free: 7.727 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.627e-05/0.2584, allocations: 64 kB / 473.5 MB, free: 7.664 MB / 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.00109/0.2595, allocations: 0.7081 MB / 474.2 MB, free: 6.945 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002407/0.2598, allocations: 173.8 kB / 474.3 MB, free: 6.773 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003452/0.2632, allocations: 2.218 MB / 476.6 MB, free: 4.516 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/0.2633, allocations: 15.98 kB / 476.6 MB, free: 4.5 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.2633, allocations: 4 kB / 476.6 MB, free: 4.496 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.405e-05/0.2633, allocations: 7.938 kB / 476.6 MB, free: 4.488 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006813/0.2701, allocations: 4.796 MB / 481.4 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.183e-06/0.2701, allocations: 4 kB / 481.4 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008808/0.271, allocations: 231.6 kB / 481.6 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001055/0.2721, allocations: 463.3 kB / 482.1 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.059e-05/0.2722, allocations: 35.98 kB / 482.1 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007073/0.2793, allocations: 7.982 MB / 490.1 MB, free: 6.301 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.2793, allocations: 4 kB / 490.1 MB, free: 6.297 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004718/0.284, allocations: 3.251 MB / 493.3 MB, free: 2.949 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006937/0.2847, allocations: 402.8 kB / 493.7 MB, free: 2.535 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001852/0.2849, allocations: 31.95 kB / 493.8 MB, free: 2.504 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008382/0.2858, allocations: 95.89 kB / 493.9 MB, free: 2.41 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001786/0.2859, allocations: 92.81 kB / 493.9 MB, free: 2.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.693e-05/0.286, allocations: 47.94 kB / 494 MB, free: 2.273 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001432/0.2875, allocations: 1.055 MB / 495 MB, free: 1.223 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2875, allocations: 0 / 495 MB, free: 1.223 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001418/0.2889, allocations: 484 kB / 495.5 MB, free: 0.75 MB / 362.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.0002766/0.2892, allocations: 167.1 kB / 495.7 MB, free: 0.5781 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003321/0.2925, allocations: 2.293 MB / 498 MB, free: 14.22 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.2925, allocations: 4.938 kB / 498 MB, free: 14.22 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002126/0.2947, allocations: 1.481 MB / 499.5 MB, free: 12.69 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001867/0.2965, allocations: 459.7 kB / 499.9 MB, free: 12.25 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007057/0.3036, allocations: 5.649 MB / 0.4937 GB, free: 6.508 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001301/0.3049, allocations: 1.839 MB / 0.4955 GB, free: 4.641 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004292/0.3054, allocations: 131.4 kB / 0.4956 GB, free: 4.516 MB / 378.7 MB Notification: Performance of SimCode: time 6.91e-07/0.3054, allocations: 0 / 0.4956 GB, free: 4.516 MB / 378.7 MB Notification: Performance of Templates: time 0.1916/0.497, allocations: 73.24 MB / 0.5672 GB, free: 33.44 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches