Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.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.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_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_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001067/0.001067, allocations: 113.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001394/0.001395, allocations: 203.8 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001081/0.001081, allocations: 51.91 kB / 358.7 MB, free: 12.87 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2302/0.2313, allocations: 50.55 MB / 409.3 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03581/0.2671, allocations: 37.89 MB / 447.2 MB, free: 11.51 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01983/0.287, allocations: 10.3 MB / 457.5 MB, free: 1.176 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007383/0.2944, allocations: 275.1 kB / 457.7 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01853/0.313, allocations: 9.105 MB / 466.8 MB, free: 7.777 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01065/0.3236, allocations: 3.926 MB / 470.8 MB, free: 3.836 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005811/0.3295, allocations: 2.416 MB / 473.2 MB, free: 1.426 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01541/0.3449, allocations: 14.23 MB / 487.4 MB, free: 3.156 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0365/0.3814, allocations: 25.63 MB / 0.501 GB, free: 9.348 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01145/0.3929, allocations: 7.188 MB / 0.508 GB, free: 2.141 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01235/0.4053, allocations: 8.051 MB / 0.5159 GB, free: 10.06 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004523/0.4098, allocations: 2.027 MB / 0.5179 GB, free: 8.035 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006062/0.4159, allocations: 2.445 MB / 0.5203 GB, free: 5.59 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003639/0.4196, allocations: 4.025 MB / 0.5242 GB, free: 1.555 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009094/0.4287, allocations: 7.833 MB / 0.5319 GB, free: 9.684 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4088/0.8375, allocations: 27.04 MB / 0.5583 GB, free: 56.71 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.987e-06/0.8376, allocations: 0 / 0.5583 GB, free: 56.71 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.8376, allocations: 3.031 kB / 0.5583 GB, free: 56.71 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0008508/0.8384, allocations: 0 / 0.5583 GB, free: 56.71 MB / 462.1 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.0472/0.8856, allocations: 16.19 MB / 0.5741 GB, free: 49.51 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.8857, allocations: 8.25 kB / 0.5741 GB, free: 49.51 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0355/0.9212, allocations: 6.522 MB / 0.5804 GB, free: 46.96 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01513/0.9364, allocations: 8.623 MB / 0.5889 GB, free: 42.48 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005362/0.9369, allocations: 0.8999 MB / 0.5897 GB, free: 42.07 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004406/0.9413, allocations: 1.201 MB / 0.5909 GB, free: 41.67 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03873/0.9801, allocations: 18.77 MB / 0.6093 GB, free: 23.82 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003661/0.9805, allocations: 11.61 kB / 0.6093 GB, free: 23.81 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002762/0.9833, allocations: 0.4901 MB / 0.6097 GB, free: 23.33 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004727/0.9837, allocations: 0.6576 MB / 0.6104 GB, free: 22.67 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03131/1.015, allocations: 17 MB / 0.627 GB, free: 5.668 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1029/1.118, allocations: 63.35 MB / 0.6889 GB, free: 5.578 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02874/1.147, allocations: 30.01 MB / 0.7182 GB, free: 4.062 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00674/1.153, allocations: 4.041 MB / 0.7221 GB, free: 28 kB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01928/1.173, allocations: 10.38 MB / 0.7322 GB, free: 5.66 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.471e-05/1.173, allocations: 89.44 kB / 0.7323 GB, free: 5.566 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=402): time 6.352e-06/1.173, allocations: 0 / 0.7323 GB, free: 5.566 MB / 0.5607 GB Notification: Performance of matching and sorting (n=412): time 0.04499/1.218, allocations: 20.38 MB / 0.7522 GB, free: 0.9492 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.786e-05/1.218, allocations: 124.3 kB / 0.7523 GB, free: 0.8086 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.223/1.441, allocations: 5.189 MB / 0.7574 GB, free: 217.1 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0007037/1.442, allocations: 94.58 kB / 0.7575 GB, free: 217 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.002515/1.444, allocations: 5.546 MB / 0.7629 GB, free: 214.8 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001247/1.446, allocations: 1.496 MB / 0.7644 GB, free: 213.7 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001716/1.447, allocations: 1.248 MB / 0.7656 GB, free: 213 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 3.907e-05/1.447, allocations: 304.6 kB / 0.7659 GB, free: 212.7 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003582/1.451, allocations: 2.852 MB / 0.7687 GB, free: 211.7 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004431/1.455, allocations: 5.344 MB / 0.7739 GB, free: 207.4 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00906/1.464, allocations: 8.727 MB / 0.7824 GB, free: 201.2 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.227e-05/1.465, allocations: 29.75 kB / 0.7824 GB, free: 201.2 MB / 0.5763 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01488/1.479, allocations: 9.71 MB / 0.7919 GB, free: 197.2 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 6.058e-05/1.48, allocations: 41.53 kB / 0.792 GB, free: 197.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000112/1.48, allocations: 84 kB / 0.792 GB, free: 197.2 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002817/1.483, allocations: 1.115 MB / 0.7931 GB, free: 196.9 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005111/1.488, allocations: 1.449 MB / 0.7945 GB, free: 195.9 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01305/1.501, allocations: 13.49 MB / 0.8077 GB, free: 183.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005839/1.507, allocations: 356.8 kB / 0.8081 GB, free: 182.8 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001315/1.508, allocations: 319.4 kB / 0.8084 GB, free: 182.5 MB / 0.5763 GB 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 (764): * Single equations (assignments): 758 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 4 systems {(1,1,100.0%), (1,5,100.0%), (1,1,100.0%), (10,46,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006605/1.515, allocations: 4.235 MB / 0.8125 GB, free: 178.8 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001463/1.516, allocations: 0.5627 MB / 0.813 GB, free: 178.3 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01076/1.527, allocations: 7.089 MB / 0.82 GB, free: 172.2 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005632/1.532, allocations: 4.23 MB / 0.8241 GB, free: 168.6 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.323e-05/1.533, allocations: 16 kB / 0.8241 GB, free: 168.5 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.95e-05/1.533, allocations: 22.56 kB / 0.8241 GB, free: 168.5 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02463/1.557, allocations: 16.97 MB / 0.8407 GB, free: 152.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.48e-05/1.557, allocations: 4 kB / 0.8407 GB, free: 152.3 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002785/1.56, allocations: 0.6871 MB / 0.8414 GB, free: 151.6 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003015/1.563, allocations: 1.186 MB / 0.8425 GB, free: 150.4 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006289/1.564, allocations: 95.97 kB / 0.8426 GB, free: 150.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01495/1.579, allocations: 17.4 MB / 0.8596 GB, free: 132.1 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.452e-06/1.579, allocations: 7.938 kB / 0.8596 GB, free: 132.1 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01408/1.593, allocations: 10.3 MB / 0.8697 GB, free: 121.6 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00289/1.596, allocations: 1.149 MB / 0.8708 GB, free: 120.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001099/1.597, allocations: 88.75 kB / 0.8709 GB, free: 120.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003182/1.6, allocations: 207.8 kB / 0.8711 GB, free: 120.1 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007243/1.601, allocations: 307.4 kB / 0.8714 GB, free: 119.8 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002725/1.601, allocations: 121.2 kB / 0.8715 GB, free: 119.7 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.005064/1.606, allocations: 3.485 MB / 0.8749 GB, free: 116.2 MB / 0.5763 GB Notification: Performance of sort global known variables: time 3.01e-07/1.606, allocations: 3.938 kB / 0.8749 GB, free: 116.2 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.00733/1.614, allocations: 1.953 MB / 0.8768 GB, free: 114.3 MB / 0.5763 GB 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 (353): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (10,46,52.0%), (1,1,100.0%), (1,5,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.0008617/1.614, allocations: 283.9 kB / 0.8771 GB, free: 114 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01054/1.625, allocations: 7.708 MB / 0.8846 GB, free: 106.2 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/1.625, allocations: 4.062 kB / 0.8846 GB, free: 106.2 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.006574/1.632, allocations: 4.079 MB / 0.8886 GB, free: 102.1 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007613/1.639, allocations: 1.458 MB / 0.89 GB, free: 100.7 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03337/1.673, allocations: 20.68 MB / 0.9102 GB, free: 79.89 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007655/1.68, allocations: 7.376 MB / 0.9174 GB, free: 72.47 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.005232/1.686, allocations: 2.001 MB / 0.9194 GB, free: 70.46 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001227/1.687, allocations: 403.4 kB / 0.9198 GB, free: 70.07 MB / 0.5763 GB Notification: Performance of SimCode: time 7.81e-07/1.687, allocations: 0 / 0.9198 GB, free: 70.07 MB / 0.5763 GB Notification: Performance of Templates: time 0.3715/2.058, allocations: 80.48 MB / 0.9984 GB, free: 193.6 MB / 0.5763 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches