Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.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 4.0.0+maint.om/package.mo", uses=false) 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) 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: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008783/0.0008784, allocations: 94.55 kB / 16.3 MB, free: 5.992 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.0008352/0.0008352, allocations: 181.3 kB / 17.19 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 223.2 MB / 241.1 MB, free: 5.457 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002663/0.0002663, allocations: 10.2 kB / 300.7 MB, free: 6.078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08896/0.08924, allocations: 50.44 MB / 351.2 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.007543/0.09682, allocations: 7.809 MB / 359 MB, free: 3.898 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003826/0.1007, allocations: 2.994 MB / 362 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004941/0.1012, allocations: 47.75 kB / 362 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009153/0.1021, allocations: 0.548 MB / 362.6 MB, free: 308 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001193/0.1033, allocations: 0.662 MB / 363.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004392/0.1038, allocations: 247.7 kB / 363.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001597/0.1054, allocations: 1.665 MB / 365.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001486/0.1069, allocations: 1.516 MB / 366.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00072/0.1076, allocations: 0.8172 MB / 367.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001071/0.1087, allocations: 1.058 MB / 368.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001875/0.1089, allocations: 128 kB / 368.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004024/0.1093, allocations: 203.9 kB / 368.8 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005531/0.1098, allocations: 0.6426 MB / 369.5 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000346/0.1102, allocations: 492.5 kB / 370 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002232/0.1124, allocations: 3.288 MB / 373.2 MB, free: 5.539 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.904e-06/0.1124, allocations: 0 / 373.2 MB, free: 5.539 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.1124, allocations: 4 kB / 373.3 MB, free: 5.535 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.797e-05/0.1125, allocations: 4 kB / 373.3 MB, free: 5.531 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.003973/0.1165, allocations: 2.483 MB / 375.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.1165, allocations: 12.03 kB / 375.8 MB, free: 2.973 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005846/0.1171, allocations: 292.7 kB / 376 MB, free: 2.684 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002219/0.1193, allocations: 1.456 MB / 377.5 MB, free: 1.168 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001347/0.1195, allocations: 176.1 kB / 377.7 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002775/0.1198, allocations: 207.9 kB / 377.9 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003897/0.1237, allocations: 2.776 MB / 380.6 MB, free: 13.93 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.675e-05/0.1237, allocations: 7.984 kB / 380.7 MB, free: 13.92 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001758/0.1239, allocations: 84 kB / 380.7 MB, free: 13.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001006/0.124, allocations: 104.2 kB / 380.8 MB, free: 13.73 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003651/0.1277, allocations: 2.355 MB / 383.2 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01131/0.139, allocations: 8.601 MB / 391.8 MB, free: 2.508 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002211/0.1412, allocations: 1.706 MB / 393.5 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002643/0.1415, allocations: 204.2 kB / 393.7 MB, free: 460 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.941e-05/0.1415, allocations: 51.52 kB / 393.7 MB, free: 400 kB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 2.505e-06/0.1415, allocations: 4 kB / 393.8 MB, free: 396 kB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01172/0.1533, allocations: 6.312 MB / 400.1 MB, free: 9.906 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.585e-05/0.1533, allocations: 60.41 kB / 400.1 MB, free: 9.836 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001567/0.1549, allocations: 1.382 MB / 401.5 MB, free: 8.441 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.658e-05/0.155, allocations: 49.7 kB / 401.6 MB, free: 8.387 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006333/0.1556, allocations: 1.037 MB / 402.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002609/0.1559, allocations: 402.1 kB / 403 MB, free: 6.938 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.826e-05/0.156, allocations: 32 kB / 403 MB, free: 6.906 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.1561, allocations: 369.9 kB / 403.4 MB, free: 6.539 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001055/0.1572, allocations: 0.6988 MB / 404.1 MB, free: 5.84 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001245/0.1584, allocations: 1.073 MB / 405.1 MB, free: 4.609 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001261/0.1597, allocations: 0.8651 MB / 406 MB, free: 3.742 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.1597, allocations: 4 kB / 406 MB, free: 3.738 MB / 334.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003615/0.1633, allocations: 2.409 MB / 408.4 MB, free: 1.289 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.1633, allocations: 15.94 kB / 408.4 MB, free: 1.273 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.1634, allocations: 8 kB / 408.4 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008427/0.1642, allocations: 391.4 kB / 408.8 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001191/0.1654, allocations: 343.5 kB / 409.2 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005721/0.1712, allocations: 6.373 MB / 415.5 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001077/0.1722, allocations: 111.8 kB / 415.6 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.477e-05/0.1723, allocations: 55.98 kB / 415.7 MB, free: 9.594 MB / 350.1 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 (160): * Single equations (assignments): 156 * 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%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001153/0.1735, allocations: 0.6808 MB / 416.4 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002202/0.1737, allocations: 162 kB / 416.5 MB, free: 8.742 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003381/0.1771, allocations: 2.134 MB / 418.7 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.418e-06/0.1771, allocations: 12 kB / 418.7 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.1772, allocations: 4 kB / 418.7 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.263e-05/0.1772, allocations: 8.156 kB / 418.7 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006996/0.1842, allocations: 4.546 MB / 423.2 MB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.1842, allocations: 7.938 kB / 423.3 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009209/0.1851, allocations: 224.1 kB / 423.5 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001058/0.1862, allocations: 426.9 kB / 423.9 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.185e-05/0.1863, allocations: 39.98 kB / 423.9 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2235/0.4098, allocations: 7.875 MB / 431.8 MB, free: 57.69 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.511e-06/0.4098, allocations: 3.656 kB / 431.8 MB, free: 57.69 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005094/0.4149, allocations: 3.31 MB / 435.1 MB, free: 57.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008278/0.4158, allocations: 373.9 kB / 435.5 MB, free: 56.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002003/0.416, allocations: 34.69 kB / 435.5 MB, free: 56.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008179/0.4168, allocations: 88.22 kB / 435.6 MB, free: 56.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002349/0.417, allocations: 94.78 kB / 435.7 MB, free: 56.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.74e-05/0.4171, allocations: 39.92 kB / 435.7 MB, free: 56.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001478/0.4186, allocations: 0.9423 MB / 436.7 MB, free: 56.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.533e-06/0.4186, allocations: 0 / 436.7 MB, free: 56.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001663/0.4203, allocations: 462.9 kB / 437.1 MB, free: 56.82 MB / 350.1 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 (105): * Single equations (assignments): 101 * 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%) 3,(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.0003048/0.4206, allocations: 160.4 kB / 437.3 MB, free: 56.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00392/0.4245, allocations: 2.232 MB / 439.5 MB, free: 56.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.4245, allocations: 1.375 kB / 439.5 MB, free: 56.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002268/0.4268, allocations: 1.442 MB / 441 MB, free: 55.74 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00173/0.4286, allocations: 384.6 kB / 441.3 MB, free: 55.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006809/0.4354, allocations: 5.319 MB / 446.7 MB, free: 52.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001372/0.4368, allocations: 1.84 MB / 448.5 MB, free: 52.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001066/0.4379, allocations: 368.5 kB / 448.9 MB, free: 51.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003145/0.4382, allocations: 118.8 kB / 449 MB, free: 51.95 MB / 350.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4382, allocations: 0 / 449 MB, free: 51.95 MB / 350.1 MB Notification: Performance of Templates: time 0.03231/0.4705, allocations: 22.05 MB / 471 MB, free: 32.63 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches