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.001413/0.001413, allocations: 197.3 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 226.6 MB / 244.3 MB, free: 6.562 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007756/0.0007756, allocations: 89.89 kB / 296.4 MB, free: 6.785 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002469/0.0002469, allocations: 4 kB / 356.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2104/0.2107, allocations: 51.3 MB / 407.5 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.01494/0.2257, allocations: 19.73 MB / 427.2 MB, free: 7.996 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01046/0.2362, allocations: 6.205 MB / 433.4 MB, free: 1.793 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003542/0.2398, allocations: 131.4 kB / 433.6 MB, free: 1.664 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003491/0.2433, allocations: 1.106 MB / 434.7 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006425/0.2497, allocations: 1.682 MB / 436.4 MB, free: 14.86 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003368/0.2531, allocations: 0.8995 MB / 437.3 MB, free: 13.96 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.009614/0.2627, allocations: 6.594 MB / 443.9 MB, free: 7.34 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005811/0.2686, allocations: 3.758 MB / 447.6 MB, free: 3.535 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003974/0.2726, allocations: 2.136 MB / 449.8 MB, free: 1.391 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005525/0.2781, allocations: 2.801 MB / 452.6 MB, free: 14.58 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001722/0.2799, allocations: 340 kB / 452.9 MB, free: 14.25 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002555/0.2825, allocations: 0.5934 MB / 453.5 MB, free: 13.65 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001421/0.2839, allocations: 1.421 MB / 454.9 MB, free: 12.22 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001984/0.2859, allocations: 1.206 MB / 456.1 MB, free: 11.01 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009313/0.2952, allocations: 8.792 MB / 464.9 MB, free: 2.191 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2952, allocations: 0 / 464.9 MB, free: 2.191 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.2953, allocations: 0 / 464.9 MB, free: 2.191 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0004426/0.2957, allocations: 0 / 464.9 MB, free: 2.191 MB / 330.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.01729/0.313, allocations: 5.913 MB / 470.8 MB, free: 12.2 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.313, allocations: 12.03 kB / 470.8 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005762/0.3188, allocations: 1.074 MB / 471.9 MB, free: 11.1 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006687/0.3255, allocations: 3.517 MB / 475.4 MB, free: 7.512 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003362/0.3259, allocations: 422.5 kB / 475.8 MB, free: 7.102 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000966/0.3269, allocations: 0.5271 MB / 476.4 MB, free: 6.574 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0121/0.339, allocations: 7.028 MB / 483.4 MB, free: 15.47 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001086/0.3391, allocations: 19.83 kB / 483.4 MB, free: 15.45 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004628/0.3396, allocations: 212 kB / 483.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002468/0.3398, allocations: 258.6 kB / 483.9 MB, free: 14.99 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01038/0.3502, allocations: 5.94 MB / 489.8 MB, free: 9.043 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03453/0.3848, allocations: 22.7 MB / 0.5005 GB, free: 1.738 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1969/0.5817, allocations: 8.557 MB / 0.5088 GB, free: 77.73 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004017/0.5857, allocations: 2.299 MB / 0.5111 GB, free: 76.94 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01089/0.5967, allocations: 6.488 MB / 0.5174 GB, free: 73.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.805e-05/0.5967, allocations: 52.41 kB / 0.5175 GB, free: 73.65 MB / 378.7 MB Notification: Performance of pre-optimization done (n=220): time 4.308e-06/0.5968, allocations: 0 / 0.5175 GB, free: 73.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=240): time 0.02147/0.6182, allocations: 11.25 MB / 0.5285 GB, free: 68.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.166e-05/0.6183, allocations: 76.56 kB / 0.5285 GB, free: 68.62 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004248/0.6226, allocations: 3.147 MB / 0.5316 GB, free: 66.91 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00019/0.6228, allocations: 61.7 kB / 0.5317 GB, free: 66.85 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001244/0.624, allocations: 2.501 MB / 0.5341 GB, free: 64.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005149/0.6246, allocations: 0.835 MB / 0.5349 GB, free: 63.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000137/0.6247, allocations: 60 kB / 0.535 GB, free: 63.44 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.6249, allocations: 436.6 kB / 0.5354 GB, free: 63 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001841/0.6267, allocations: 1.338 MB / 0.5367 GB, free: 61.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002129/0.6288, allocations: 2.342 MB / 0.539 GB, free: 58.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002128/0.631, allocations: 1.736 MB / 0.5407 GB, free: 57.12 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.391e-05/0.631, allocations: 12 kB / 0.5407 GB, free: 57.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.006336/0.6374, allocations: 4.725 MB / 0.5453 GB, free: 52.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.244e-05/0.6374, allocations: 20 kB / 0.5453 GB, free: 52.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.351e-05/0.6374, allocations: 32 kB / 0.5454 GB, free: 52.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001057/0.6385, allocations: 0.5616 MB / 0.5459 GB, free: 51.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002455/0.641, allocations: 0.7449 MB / 0.5466 GB, free: 50.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006443/0.6474, allocations: 9.564 MB / 0.556 GB, free: 40.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003236/0.6507, allocations: 199.7 kB / 0.5562 GB, free: 40.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004548/0.6512, allocations: 136 kB / 0.5563 GB, free: 40.35 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.003059/0.6543, allocations: 1.574 MB / 0.5578 GB, free: 38.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008464/0.6551, allocations: 349.2 kB / 0.5582 GB, free: 38.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006075/0.6612, allocations: 4.101 MB / 0.5622 GB, free: 34.23 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.716e-05/0.6613, allocations: 23.95 kB / 0.5622 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.514e-05/0.6613, allocations: 12 kB / 0.5622 GB, free: 34.19 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.246e-05/0.6613, allocations: 11.95 kB / 0.5622 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01479/0.6761, allocations: 9.019 MB / 0.571 GB, free: 25.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.417e-05/0.6762, allocations: 4 kB / 0.571 GB, free: 25.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001652/0.6778, allocations: 407.4 kB / 0.5714 GB, free: 24.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001841/0.6797, allocations: 0.7522 MB / 0.5722 GB, free: 23.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002476/0.68, allocations: 67.97 kB / 0.5722 GB, free: 23.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01157/0.6915, allocations: 15.5 MB / 0.5874 GB, free: 7.219 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.6916, allocations: 7.938 kB / 0.5874 GB, free: 7.211 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008525/0.7001, allocations: 5.875 MB / 0.5931 GB, free: 1.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001927/0.7021, allocations: 0.7037 MB / 0.5938 GB, free: 464 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005342/0.7027, allocations: 67.94 kB / 0.5939 GB, free: 396 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001616/0.7043, allocations: 155.8 kB / 0.594 GB, free: 240 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003804/0.7047, allocations: 177.6 kB / 0.5942 GB, free: 60 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001598/0.7048, allocations: 79.97 kB / 0.5942 GB, free: 15.98 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003455/0.7083, allocations: 2.111 MB / 0.5963 GB, free: 13.88 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.7083, allocations: 0 / 0.5963 GB, free: 13.88 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004805/0.7131, allocations: 1.001 MB / 0.5973 GB, free: 12.88 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.0007629/0.7139, allocations: 227.2 kB / 0.5975 GB, free: 12.66 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006786/0.7207, allocations: 4.159 MB / 0.6016 GB, free: 8.402 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/0.7208, allocations: 4.125 kB / 0.6016 GB, free: 8.398 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004308/0.7251, allocations: 2.785 MB / 0.6043 GB, free: 5.516 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005309/0.7304, allocations: 0.9165 MB / 0.6052 GB, free: 4.617 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02137/0.7518, allocations: 11.98 MB / 0.6169 GB, free: 8.555 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005273/0.7571, allocations: 3.335 MB / 0.6201 GB, free: 5.188 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001426/0.7586, allocations: 263.4 kB / 0.6204 GB, free: 4.93 MB / 410.7 MB Notification: Performance of SimCode: time 1.202e-06/0.7586, allocations: 0 / 0.6204 GB, free: 4.93 MB / 410.7 MB Notification: Performance of Templates: time 0.704/1.463, allocations: 265.3 MB / 0.8794 GB, free: 143 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