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.0009638/0.0009639, allocations: 94.11 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001361/0.001361, allocations: 204.9 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.289/1.289, allocations: 227.2 MB / 245.9 MB, free: 12.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002262/0.0002262, allocations: 4 kB / 306.6 MB, free: 1.656 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1063, allocations: 51.49 MB / 358.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.2247/0.331, allocations: 17.99 MB / 376.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01367/0.3447, allocations: 6.422 MB / 382.5 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004652/0.3494, allocations: 122.4 kB / 382.6 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004723/0.3541, allocations: 1.145 MB / 383.8 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008864/0.363, allocations: 1.877 MB / 385.6 MB, free: 8.059 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004055/0.3671, allocations: 0.8859 MB / 386.5 MB, free: 7.527 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01098/0.3781, allocations: 4.441 MB / 391 MB, free: 5.137 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009405/0.3875, allocations: 3.759 MB / 394.7 MB, free: 3.668 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005961/0.3935, allocations: 2.031 MB / 396.7 MB, free: 2.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006325/0.3999, allocations: 2.508 MB / 399.3 MB, free: 1.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00202/0.4019, allocations: 332.6 kB / 399.6 MB, free: 1.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003822/0.4058, allocations: 0.5723 MB / 400.1 MB, free: 1.035 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001574/0.4073, allocations: 1.368 MB / 401.5 MB, free: 88 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002845/0.4102, allocations: 1.2 MB / 402.7 MB, free: 15.36 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01079/0.421, allocations: 8.72 MB / 411.4 MB, free: 7.523 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.421, allocations: 0 / 411.4 MB, free: 7.523 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.866e-06/0.4211, allocations: 0 / 411.4 MB, free: 7.523 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003773/0.4214, allocations: 4 kB / 411.4 MB, free: 7.52 MB / 318.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.01574/0.4372, allocations: 5.885 MB / 417.3 MB, free: 1.555 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.4372, allocations: 8.031 kB / 417.3 MB, free: 1.547 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005917/0.4432, allocations: 1.074 MB / 418.4 MB, free: 476 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008163/0.4514, allocations: 3.579 MB / 422 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003986/0.4518, allocations: 422.7 kB / 422.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001347/0.4531, allocations: 0.5232 MB / 422.9 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01887/0.472, allocations: 6.985 MB / 429.9 MB, free: 4.812 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002472/0.4723, allocations: 15.89 kB / 429.9 MB, free: 4.797 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008833/0.4732, allocations: 216 kB / 430.1 MB, free: 4.586 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002855/0.4735, allocations: 262.5 kB / 430.4 MB, free: 4.328 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01286/0.4864, allocations: 5.94 MB / 436.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04012/0.5265, allocations: 22.61 MB / 458.9 MB, free: 7.164 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007868/0.5344, allocations: 8.534 MB / 467.5 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009774/0.5442, allocations: 5.383 MB / 472.9 MB, free: 8.125 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.166e-05/0.5443, allocations: 56.56 kB / 472.9 MB, free: 8.062 MB / 382.1 MB Notification: Performance of pre-optimization done (n=232): time 4.148e-06/0.5443, allocations: 4 kB / 472.9 MB, free: 8.059 MB / 382.1 MB Notification: Performance of matching and sorting (n=254): time 0.0237/0.568, allocations: 11.78 MB / 484.7 MB, free: 12.06 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.346e-05/0.5681, allocations: 77.41 kB / 484.8 MB, free: 11.97 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004301/0.5724, allocations: 3.027 MB / 487.8 MB, free: 8.941 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002709/0.5727, allocations: 69.7 kB / 487.9 MB, free: 8.867 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001599/0.5743, allocations: 2.499 MB / 490.4 MB, free: 6.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007619/0.5751, allocations: 0.8664 MB / 491.2 MB, free: 5.461 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001547/0.5752, allocations: 68 kB / 491.3 MB, free: 5.395 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001917/0.5754, allocations: 440.8 kB / 491.7 MB, free: 4.957 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002148/0.5776, allocations: 1.369 MB / 493.1 MB, free: 3.586 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00265/0.5803, allocations: 2.349 MB / 495.4 MB, free: 0.8008 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002559/0.5828, allocations: 1.776 MB / 497.2 MB, free: 15 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.616e-05/0.5829, allocations: 16 kB / 497.2 MB, free: 14.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=415) (initialization): time 0.00744/0.5903, allocations: 4.77 MB / 0.4902 GB, free: 10.11 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.373e-05/0.5904, allocations: 16 kB / 0.4903 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-05/0.5904, allocations: 35.94 kB / 0.4903 GB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/0.5916, allocations: 0.5333 MB / 0.4908 GB, free: 9.504 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002855/0.5945, allocations: 0.7761 MB / 0.4916 GB, free: 8.727 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008322/0.6028, allocations: 9.553 MB / 0.5009 GB, free: 14.51 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003098/0.6059, allocations: 203.9 kB / 0.5011 GB, free: 14.31 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003451/0.6063, allocations: 144 kB / 0.5012 GB, free: 14.17 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 141 * 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 (389): * Single equations (assignments): 382 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003837/0.6102, allocations: 1.578 MB / 0.5028 GB, free: 12.58 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001157/0.6113, allocations: 351.8 kB / 0.5031 GB, free: 12.23 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007729/0.6191, allocations: 4.184 MB / 0.5072 GB, free: 7.906 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.371e-05/0.6191, allocations: 24 kB / 0.5072 GB, free: 7.883 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.008e-05/0.6191, allocations: 8 kB / 0.5072 GB, free: 7.875 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.679e-05/0.6192, allocations: 15.89 kB / 0.5072 GB, free: 7.859 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01772/0.6369, allocations: 9.23 MB / 0.5162 GB, free: 14.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.404e-05/0.6369, allocations: 4 kB / 0.5163 GB, free: 14.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001982/0.6389, allocations: 451.4 kB / 0.5167 GB, free: 13.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001985/0.6409, allocations: 0.7272 MB / 0.5174 GB, free: 13.21 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001913/0.6411, allocations: 71.97 kB / 0.5175 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1894/0.8306, allocations: 15.5 MB / 0.5326 GB, free: 133.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.935e-06/0.8306, allocations: 8.531 kB / 0.5326 GB, free: 133.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009388/0.84, allocations: 6.63 MB / 0.5391 GB, free: 131 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001864/0.8419, allocations: 0.7016 MB / 0.5398 GB, free: 130.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005634/0.8425, allocations: 64.45 kB / 0.5398 GB, free: 130.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001635/0.8441, allocations: 151.3 kB / 0.54 GB, free: 130.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004565/0.8446, allocations: 203.6 kB / 0.5402 GB, free: 130.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001604/0.8448, allocations: 79.05 kB / 0.5402 GB, free: 130.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003284/0.8481, allocations: 2.028 MB / 0.5422 GB, free: 129.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.8481, allocations: 0 / 0.5422 GB, free: 129.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003762/0.8518, allocations: 1.005 MB / 0.5432 GB, free: 129.8 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (215): * Single equations (assignments): 207 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005168/0.8524, allocations: 240.7 kB / 0.5434 GB, free: 129.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006426/0.8588, allocations: 4.233 MB / 0.5476 GB, free: 127.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/0.8589, allocations: 5.188 kB / 0.5476 GB, free: 127.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004165/0.863, allocations: 2.81 MB / 0.5503 GB, free: 126.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00403/0.8671, allocations: 0.8905 MB / 0.5512 GB, free: 125.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01423/0.8813, allocations: 12.06 MB / 0.563 GB, free: 119 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002531/0.8839, allocations: 3.52 MB / 0.5664 GB, free: 117.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002627/0.8865, allocations: 0.8265 MB / 0.5672 GB, free: 117.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006002/0.8871, allocations: 242.1 kB / 0.5674 GB, free: 117.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.262e-06/0.8872, allocations: 0 / 0.5674 GB, free: 117.5 MB / 446.1 MB Notification: Performance of Templates: time 0.06417/0.9513, allocations: 47.2 MB / 0.6135 GB, free: 73.17 MB / 446.1 MB 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches