Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.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_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0017/0.0017, allocations: 190.6 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.318/1.318, allocations: 226.6 MB / 244.7 MB, free: 6.367 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007774/0.0007774, allocations: 92.31 kB / 296.8 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002126/0.0002126, allocations: 4 kB / 356.8 MB, free: 10.67 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2407/0.241, allocations: 51.28 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.01529/0.2563, allocations: 19.77 MB / 427.8 MB, free: 7.867 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01232/0.2687, allocations: 6.214 MB / 434 MB, free: 1.652 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003838/0.2726, allocations: 131.4 kB / 434.2 MB, free: 1.523 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003223/0.2758, allocations: 1.103 MB / 435.3 MB, free: 424 kB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005241/0.2811, allocations: 1.709 MB / 437 MB, free: 14.7 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002885/0.284, allocations: 0.8977 MB / 437.9 MB, free: 13.8 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.009264/0.2932, allocations: 6.706 MB / 444.6 MB, free: 7.066 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006085/0.2994, allocations: 4.65 MB / 449.2 MB, free: 2.34 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003534/0.3029, allocations: 2.128 MB / 451.4 MB, free: 208 kB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00443/0.3074, allocations: 2.797 MB / 454.2 MB, free: 13.39 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009168/0.3083, allocations: 340 kB / 454.5 MB, free: 13.05 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002003/0.3103, allocations: 0.648 MB / 455.1 MB, free: 12.41 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001391/0.3117, allocations: 1.425 MB / 456.6 MB, free: 10.98 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003656/0.3154, allocations: 2.797 MB / 459.4 MB, free: 8.16 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009578/0.325, allocations: 8.808 MB / 468.2 MB, free: 15.33 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.325, allocations: 4 kB / 468.2 MB, free: 15.32 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.325, allocations: 0 / 468.2 MB, free: 15.32 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003984/0.3254, allocations: 0 / 468.2 MB, free: 15.32 MB / 346.7 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.01515/0.3406, allocations: 5.843 MB / 474 MB, free: 9.406 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.644e-05/0.3407, allocations: 8.031 kB / 474 MB, free: 9.398 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005869/0.3465, allocations: 1.071 MB / 475.1 MB, free: 8.32 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009439/0.356, allocations: 3.621 MB / 478.7 MB, free: 4.625 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005671/0.3566, allocations: 427 kB / 479.1 MB, free: 4.207 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001854/0.3585, allocations: 0.5232 MB / 479.7 MB, free: 3.684 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01934/0.3779, allocations: 7.036 MB / 486.7 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003197/0.3782, allocations: 7.906 kB / 486.7 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001486/0.3797, allocations: 220 kB / 486.9 MB, free: 12.35 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003229/0.3801, allocations: 258.6 kB / 487.2 MB, free: 12.1 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0148/0.3949, allocations: 5.944 MB / 493.1 MB, free: 6.145 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2443/0.6392, allocations: 22.72 MB / 0.5037 GB, free: 79.51 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007874/0.6472, allocations: 8.547 MB / 0.5121 GB, free: 73.69 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003643/0.6509, allocations: 2.304 MB / 0.5143 GB, free: 73.47 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01079/0.6617, allocations: 6.491 MB / 0.5207 GB, free: 70.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.049e-05/0.6618, allocations: 54.83 kB / 0.5207 GB, free: 70.18 MB / 378.7 MB Notification: Performance of pre-optimization done (n=220): time 5.019e-06/0.6618, allocations: 1.406 kB / 0.5207 GB, free: 70.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=240): time 0.02071/0.6825, allocations: 11.24 MB / 0.5317 GB, free: 64.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.65e-05/0.6826, allocations: 80.41 kB / 0.5318 GB, free: 64.83 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004468/0.6871, allocations: 3.148 MB / 0.5349 GB, free: 63.17 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003793/0.6875, allocations: 65.14 kB / 0.5349 GB, free: 63.11 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00124/0.6887, allocations: 2.505 MB / 0.5374 GB, free: 60.8 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007024/0.6894, allocations: 0.8269 MB / 0.5382 GB, free: 59.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001486/0.6896, allocations: 64 kB / 0.5382 GB, free: 59.92 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.6897, allocations: 436.5 kB / 0.5387 GB, free: 59.49 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001893/0.6916, allocations: 1.334 MB / 0.54 GB, free: 58.15 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002131/0.6938, allocations: 2.343 MB / 0.5422 GB, free: 55.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004299/0.6981, allocations: 3.932 MB / 0.5461 GB, free: 50.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-05/0.6981, allocations: 8 kB / 0.5461 GB, free: 50.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.006825/0.705, allocations: 4.737 MB / 0.5507 GB, free: 46.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.517e-05/0.705, allocations: 20 kB / 0.5507 GB, free: 46.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.342e-05/0.7051, allocations: 32 kB / 0.5508 GB, free: 46.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001068/0.7062, allocations: 0.5406 MB / 0.5513 GB, free: 45.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002505/0.7087, allocations: 0.7449 MB / 0.552 GB, free: 44.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006539/0.7152, allocations: 9.566 MB / 0.5614 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003171/0.7184, allocations: 195.7 kB / 0.5616 GB, free: 34.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004832/0.719, allocations: 140 kB / 0.5617 GB, free: 34.2 MB / 378.7 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 (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 {(3,100.0%) 12,(1,100.0%) 6,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003316/0.7223, allocations: 1.571 MB / 0.5632 GB, free: 32.61 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001008/0.7233, allocations: 355.6 kB / 0.5636 GB, free: 32.26 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006214/0.7295, allocations: 4.086 MB / 0.5675 GB, free: 28.08 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.621e-05/0.7296, allocations: 27.94 kB / 0.5676 GB, free: 28.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.315e-05/0.7296, allocations: 8 kB / 0.5676 GB, free: 28.04 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.958e-05/0.7296, allocations: 11.95 kB / 0.5676 GB, free: 28.03 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0139/0.7435, allocations: 9.019 MB / 0.5764 GB, free: 18.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-05/0.7436, allocations: 8 kB / 0.5764 GB, free: 18.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001569/0.7451, allocations: 412 kB / 0.5768 GB, free: 18.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001734/0.7469, allocations: 0.7585 MB / 0.5775 GB, free: 17.68 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001823/0.7471, allocations: 67.97 kB / 0.5776 GB, free: 17.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01111/0.7582, allocations: 15.51 MB / 0.5927 GB, free: 1.059 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.072e-06/0.7582, allocations: 7.938 kB / 0.5928 GB, free: 1.051 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009664/0.7679, allocations: 5.89 MB / 0.5985 GB, free: 11 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002095/0.77, allocations: 0.7036 MB / 0.5992 GB, free: 10.28 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006611/0.7707, allocations: 59.98 kB / 0.5993 GB, free: 10.22 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001595/0.7723, allocations: 151.8 kB / 0.5994 GB, free: 10.07 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005119/0.7728, allocations: 181.6 kB / 0.5996 GB, free: 9.891 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001592/0.773, allocations: 71.98 kB / 0.5996 GB, free: 9.82 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003629/0.7767, allocations: 2.111 MB / 0.6017 GB, free: 7.719 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.924e-06/0.7767, allocations: 0 / 0.6017 GB, free: 7.719 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00397/0.7806, allocations: 1.007 MB / 0.6027 GB, free: 6.719 MB / 394.7 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 (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 {(1,100.0%) 5,(3,100.0%) 12,(1,100.0%) 6,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006377/0.7813, allocations: 268.4 kB / 0.6029 GB, free: 6.457 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006631/0.7879, allocations: 4.151 MB / 0.607 GB, free: 2.207 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/0.788, allocations: 0 / 0.607 GB, free: 2.207 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00416/0.7921, allocations: 2.782 MB / 0.6097 GB, free: 15.33 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006481/0.7986, allocations: 0.9136 MB / 0.6106 GB, free: 14.43 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0171/0.8157, allocations: 11.97 MB / 0.6223 GB, free: 2.379 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00308/0.8189, allocations: 3.35 MB / 0.6256 GB, free: 15 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001125/0.82, allocations: 267.4 kB / 0.6258 GB, free: 14.73 MB / 426.7 MB Notification: Performance of SimCode: time 6.11e-07/0.82, allocations: 0 / 0.6258 GB, free: 14.73 MB / 426.7 MB Notification: Performance of Templates: time 0.6039/1.424, allocations: 265.1 MB / 0.8848 GB, free: 135.9 MB / 474.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches