Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001177/0.001177, allocations: 201 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.245/1.245, allocations: 226.6 MB / 244.7 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007403/0.0007403, allocations: 100.1 kB / 296.8 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002318/0.0002319, allocations: 4 kB / 356.8 MB, free: 10.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1985/0.1988, allocations: 51.29 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.02473/0.2235, allocations: 33.29 MB / 441.4 MB, free: 10.29 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01858/0.2422, allocations: 9.518 MB / 450.9 MB, free: 0.7539 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006723/0.2489, allocations: 251.2 kB / 451.1 MB, free: 0.5078 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006899/0.2558, allocations: 1.841 MB / 453 MB, free: 14.66 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0115/0.2674, allocations: 3.253 MB / 456.2 MB, free: 11.39 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006182/0.2736, allocations: 1.533 MB / 457.8 MB, free: 9.871 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.02114/0.2947, allocations: 15.79 MB / 473.5 MB, free: 10.04 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03961/0.3344, allocations: 24.14 MB / 497.7 MB, free: 1.746 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009009/0.3434, allocations: 5.162 MB / 0.4911 GB, free: 12.57 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009518/0.353, allocations: 5.872 MB / 0.4968 GB, free: 6.672 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003032/0.3561, allocations: 0.7969 MB / 0.4976 GB, free: 5.875 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005251/0.3614, allocations: 1.199 MB / 0.4987 GB, free: 4.676 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003721/0.3651, allocations: 2.503 MB / 0.5012 GB, free: 2.164 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.3932/0.7583, allocations: 5.965 MB / 0.507 GB, free: 28.64 MB / 378.8 MB Notification: Performance of NFConvertDAE.convert: time 0.02348/0.7818, allocations: 22.69 MB / 0.5292 GB, free: 20.32 MB / 378.8 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.7819, allocations: 3.5 kB / 0.5292 GB, free: 20.32 MB / 378.8 MB Notification: Performance of FrontEnd: time 2.545e-06/0.7819, allocations: 3 kB / 0.5292 GB, free: 20.32 MB / 378.8 MB Notification: Performance of Transformations before backend: time 0.0009333/0.7828, allocations: 0 / 0.5292 GB, free: 20.32 MB / 378.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.03714/0.82, allocations: 13.28 MB / 0.5421 GB, free: 13.69 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.8201, allocations: 11 kB / 0.5421 GB, free: 13.69 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03315/0.8532, allocations: 6.44 MB / 0.5484 GB, free: 11.2 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01837/0.8716, allocations: 8.316 MB / 0.5566 GB, free: 8.867 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001022/0.8727, allocations: 0.9097 MB / 0.5574 GB, free: 8.836 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005969/0.8787, allocations: 1.201 MB / 0.5586 GB, free: 8.516 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06213/0.9408, allocations: 18.69 MB / 0.5769 GB, free: 12.67 MB / 394.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000693/0.9416, allocations: 14.53 kB / 0.5769 GB, free: 12.66 MB / 394.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005029/0.9466, allocations: 0.4987 MB / 0.5774 GB, free: 12.55 MB / 394.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008847/0.9475, allocations: 0.6536 MB / 0.578 GB, free: 11.94 MB / 394.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04032/0.9879, allocations: 16.93 MB / 0.5945 GB, free: 12.07 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1137/1.102, allocations: 64.15 MB / 0.6572 GB, free: 11.14 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2207/1.322, allocations: 30 MB / 0.6865 GB, free: 162.5 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006615/1.329, allocations: 4.097 MB / 0.6905 GB, free: 162.4 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01636/1.345, allocations: 10.51 MB / 0.7008 GB, free: 157.5 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.452e-05/1.345, allocations: 77.73 kB / 0.7008 GB, free: 157.4 MB / 490.8 MB Notification: Performance of pre-optimization done (n=408): time 6.412e-06/1.345, allocations: 0 / 0.7008 GB, free: 157.4 MB / 490.8 MB Notification: Performance of matching and sorting (n=418): time 0.03861/1.384, allocations: 20.4 MB / 0.7208 GB, free: 148 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.605e-05/1.384, allocations: 124.8 kB / 0.7209 GB, free: 147.9 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008028/1.392, allocations: 5.135 MB / 0.7259 GB, free: 144.7 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007327/1.393, allocations: 94.91 kB / 0.726 GB, free: 144.6 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002533/1.396, allocations: 5.352 MB / 0.7312 GB, free: 139.9 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001561/1.397, allocations: 1.439 MB / 0.7326 GB, free: 138.6 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004546/1.398, allocations: 132 kB / 0.7327 GB, free: 138.4 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0002754/1.398, allocations: 0.5583 MB / 0.7333 GB, free: 138 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0039/1.402, allocations: 2.877 MB / 0.7361 GB, free: 135.5 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004976/1.407, allocations: 5.372 MB / 0.7413 GB, free: 129.5 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009447/1.416, allocations: 8.796 MB / 0.7499 GB, free: 120.2 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.907e-05/1.416, allocations: 24 kB / 0.75 GB, free: 120.2 MB / 490.8 MB Notification: Performance of matching and sorting (n=834) (initialization): time 0.01485/1.431, allocations: 9.729 MB / 0.7595 GB, free: 110.7 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.507e-05/1.431, allocations: 41.41 kB / 0.7595 GB, free: 110.7 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.657e-05/1.431, allocations: 86.19 kB / 0.7596 GB, free: 110.6 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002599/1.434, allocations: 1.124 MB / 0.7607 GB, free: 109.5 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004696/1.439, allocations: 1.451 MB / 0.7621 GB, free: 108 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01206/1.451, allocations: 12.51 MB / 0.7743 GB, free: 94.96 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005481/1.456, allocations: 355.5 kB / 0.7746 GB, free: 94.61 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001116/1.457, allocations: 324 kB / 0.775 GB, free: 94.29 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * 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 (767): * Single equations (assignments): 758 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(10,48.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007841/1.465, allocations: 4.231 MB / 0.7791 GB, free: 90.05 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001152/1.466, allocations: 0.5364 MB / 0.7796 GB, free: 89.5 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01078/1.477, allocations: 7.156 MB / 0.7866 GB, free: 82.25 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00575/1.483, allocations: 4.297 MB / 0.7908 GB, free: 77.91 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.845e-05/1.483, allocations: 12 kB / 0.7908 GB, free: 77.89 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.978e-05/1.483, allocations: 23.92 kB / 0.7908 GB, free: 77.87 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.029/1.512, allocations: 17.1 MB / 0.8075 GB, free: 60.65 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.712e-05/1.512, allocations: 4 kB / 0.8075 GB, free: 60.64 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002855/1.515, allocations: 0.6904 MB / 0.8082 GB, free: 59.95 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002958/1.518, allocations: 1.182 MB / 0.8094 GB, free: 58.76 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005305/1.519, allocations: 99.97 kB / 0.8095 GB, free: 58.66 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0143/1.533, allocations: 16.01 MB / 0.8251 GB, free: 41.86 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/1.533, allocations: 7.938 kB / 0.8251 GB, free: 41.85 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01523/1.548, allocations: 10.4 MB / 0.8353 GB, free: 31.29 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003168/1.551, allocations: 1.143 MB / 0.8364 GB, free: 30.12 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001335/1.553, allocations: 80 kB / 0.8364 GB, free: 30.04 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003151/1.556, allocations: 215.8 kB / 0.8367 GB, free: 29.83 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008651/1.557, allocations: 311.4 kB / 0.8369 GB, free: 29.52 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002995/1.557, allocations: 120 kB / 0.8371 GB, free: 29.41 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.006582/1.564, allocations: 3.434 MB / 0.8404 GB, free: 25.99 MB / 490.8 MB Notification: Performance of sort global known variables: time 6.01e-07/1.564, allocations: 0 / 0.8404 GB, free: 25.99 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.008812/1.573, allocations: 1.966 MB / 0.8423 GB, free: 24.03 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.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 (356): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(10,48.0%) 46,(1,100.0%) 1,(1,100.0%) 5,(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.00117/1.574, allocations: 289.8 kB / 0.8426 GB, free: 23.75 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01224/1.586, allocations: 7.759 MB / 0.8502 GB, free: 15.91 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.202e-05/1.586, allocations: 1.812 kB / 0.8502 GB, free: 15.91 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006573/1.593, allocations: 4.15 MB / 0.8542 GB, free: 11.67 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01098/1.604, allocations: 1.361 MB / 0.8556 GB, free: 10.34 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2572/1.861, allocations: 24.37 MB / 0.8794 GB, free: 141 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008349/1.869, allocations: 7.138 MB / 0.8863 GB, free: 140 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002072/1.871, allocations: 460.8 kB / 0.8868 GB, free: 140 MB / 490.8 MB Notification: Performance of SimCode: time 1.172e-06/1.871, allocations: 0 / 0.8868 GB, free: 140 MB / 490.8 MB Notification: Performance of Templates: time 0.9981/2.87, allocations: 0.493 GB / 1.38 GB, free: 22.72 MB / 0.4949 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Mains/SMPM_Mains.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches