Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00126/0.00126, allocations: 111.6 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001628/0.001628, allocations: 212.9 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001288, allocations: 63.89 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3708/0.3721, allocations: 50.53 MB / 410 MB, free: 1.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.02898/0.4011, allocations: 22.37 MB / 432.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01833/0.4195, allocations: 6.655 MB / 439 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008611/0.4282, allocations: 143.4 kB / 439.1 MB, free: 4.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006599/0.4348, allocations: 1.502 MB / 440.6 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01097/0.4459, allocations: 2.03 MB / 442.7 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005495/0.4514, allocations: 1.344 MB / 444 MB, free: 15.58 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01297/0.4644, allocations: 6.579 MB / 450.6 MB, free: 8.969 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01233/0.4768, allocations: 5.59 MB / 456.2 MB, free: 3.297 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007254/0.4841, allocations: 3.029 MB / 459.2 MB, free: 264 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008027/0.4922, allocations: 3.678 MB / 462.9 MB, free: 12.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004112/0.4963, allocations: 0.8164 MB / 463.7 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005646/0.502, allocations: 1.125 MB / 464.8 MB, free: 10.62 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004299/0.5063, allocations: 2.022 MB / 466.8 MB, free: 8.598 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01016/0.5165, allocations: 3.551 MB / 470.4 MB, free: 5.031 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02/0.5366, allocations: 10.84 MB / 481.2 MB, free: 10.16 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.478e-06/0.5367, allocations: 4 kB / 481.2 MB, free: 10.16 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.5367, allocations: 0 / 481.2 MB, free: 10.16 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005246/0.5372, allocations: 0 / 481.2 MB, free: 10.16 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.02867/0.5659, allocations: 6.961 MB / 488.2 MB, free: 3.113 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.324e-05/0.566, allocations: 8.031 kB / 488.2 MB, free: 3.105 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007648/0.5736, allocations: 1.071 MB / 489.3 MB, free: 2.027 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01408/0.5877, allocations: 3.758 MB / 493 MB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006994/0.5885, allocations: 411.1 kB / 493.4 MB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003095/0.5916, allocations: 0.5309 MB / 494 MB, free: 13.26 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02661/0.6182, allocations: 7.052 MB / 0.4893 GB, free: 6.133 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004072/0.6187, allocations: 11.84 kB / 0.4893 GB, free: 6.121 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002083/0.6208, allocations: 228 kB / 0.4895 GB, free: 5.898 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000349/0.6212, allocations: 258.6 kB / 0.4897 GB, free: 5.645 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01644/0.6376, allocations: 5.952 MB / 0.4956 GB, free: 15.68 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05635/0.694, allocations: 22.32 MB / 0.5174 GB, free: 8.754 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01114/0.7052, allocations: 8.558 MB / 0.5257 GB, free: 15.26 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005221/0.7105, allocations: 2.261 MB / 0.5279 GB, free: 12.99 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01509/0.7256, allocations: 6.44 MB / 0.5342 GB, free: 6.352 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.67e-05/0.7257, allocations: 60.56 kB / 0.5343 GB, free: 6.281 MB / 462.1 MB Notification: Performance of pre-optimization done (n=220): time 6.272e-06/0.7258, allocations: 3.938 kB / 0.5343 GB, free: 6.277 MB / 462.1 MB Notification: Performance of matching and sorting (n=240): time 0.3415/1.067, allocations: 11.09 MB / 0.5451 GB, free: 118.8 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.341e-05/1.067, allocations: 77.98 kB / 0.5452 GB, free: 118.7 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007539/1.075, allocations: 3.177 MB / 0.5483 GB, free: 117.6 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006343/1.076, allocations: 65.58 kB / 0.5483 GB, free: 117.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002177/1.078, allocations: 2.511 MB / 0.5508 GB, free: 115.6 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00114/1.079, allocations: 0.8304 MB / 0.5516 GB, free: 114.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001134/1.08, allocations: 0.5608 MB / 0.5522 GB, free: 114.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.637e-05/1.08, allocations: 302 kB / 0.5524 GB, free: 114.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002973/1.083, allocations: 1.332 MB / 0.5537 GB, free: 113.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003746/1.087, allocations: 2.336 MB / 0.556 GB, free: 112.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007149/1.094, allocations: 3.923 MB / 0.5599 GB, free: 109.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.101e-05/1.094, allocations: 7.812 kB / 0.5599 GB, free: 109.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.01159/1.106, allocations: 4.723 MB / 0.5645 GB, free: 107.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.616e-05/1.106, allocations: 22.7 kB / 0.5645 GB, free: 107.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.941e-05/1.106, allocations: 33.72 kB / 0.5645 GB, free: 107.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001712/1.108, allocations: 0.5456 MB / 0.5651 GB, free: 107.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003963/1.112, allocations: 0.7375 MB / 0.5658 GB, free: 107 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01044/1.122, allocations: 10.44 MB / 0.576 GB, free: 96.28 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005216/1.127, allocations: 191.8 kB / 0.5762 GB, free: 96.09 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007244/1.128, allocations: 138.4 kB / 0.5763 GB, free: 95.96 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (377): * Single equations (assignments): 370 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004996/1.133, allocations: 1.586 MB / 0.5778 GB, free: 94.36 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001221/1.134, allocations: 347.7 kB / 0.5782 GB, free: 94.02 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008624/1.143, allocations: 4.077 MB / 0.5822 GB, free: 89.84 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.317e-05/1.143, allocations: 24 kB / 0.5822 GB, free: 89.82 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.059e-05/1.143, allocations: 8.125 kB / 0.5822 GB, free: 89.81 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.178e-05/1.143, allocations: 15.95 kB / 0.5822 GB, free: 89.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02218/1.165, allocations: 8.996 MB / 0.591 GB, free: 80.66 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.622e-05/1.165, allocations: 4 kB / 0.591 GB, free: 80.66 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002417/1.168, allocations: 408 kB / 0.5914 GB, free: 80.26 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002616/1.17, allocations: 0.7576 MB / 0.5921 GB, free: 79.48 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002592/1.171, allocations: 67.97 kB / 0.5922 GB, free: 79.42 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01716/1.188, allocations: 16.89 MB / 0.6087 GB, free: 61.44 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.143e-06/1.188, allocations: 7.938 kB / 0.6087 GB, free: 61.43 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01275/1.201, allocations: 5.855 MB / 0.6144 GB, free: 55.41 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003124/1.204, allocations: 0.7035 MB / 0.6151 GB, free: 54.69 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001444/1.205, allocations: 63.83 kB / 0.6152 GB, free: 54.63 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003305/1.209, allocations: 135.9 kB / 0.6153 GB, free: 54.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006096/1.209, allocations: 189.6 kB / 0.6155 GB, free: 54.31 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002227/1.21, allocations: 67.98 kB / 0.6155 GB, free: 54.25 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004796/1.214, allocations: 2.139 MB / 0.6176 GB, free: 52.12 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.41e-07/1.214, allocations: 0 / 0.6176 GB, free: 52.12 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007074/1.222, allocations: 0.9963 MB / 0.6186 GB, free: 51.12 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.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 (198): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001172/1.223, allocations: 265.8 kB / 0.6188 GB, free: 50.86 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009843/1.233, allocations: 4.157 MB / 0.6229 GB, free: 46.61 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.069e-05/1.233, allocations: 0 / 0.6229 GB, free: 46.61 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005491/1.238, allocations: 2.768 MB / 0.6256 GB, free: 43.75 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00694/1.245, allocations: 0.974 MB / 0.6266 GB, free: 42.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02409/1.269, allocations: 9.955 MB / 0.6363 GB, free: 32.78 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004001/1.273, allocations: 3.335 MB / 0.6395 GB, free: 29.41 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001661/1.275, allocations: 275.4 kB / 0.6398 GB, free: 29.14 MB / 462.1 MB Notification: Performance of SimCode: time 9.32e-07/1.275, allocations: 0 / 0.6398 GB, free: 29.14 MB / 462.1 MB Notification: Performance of Templates: time 0.5459/1.821, allocations: 267.3 MB / 0.9009 GB, free: 42.16 MB / 0.5294 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches