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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009684/0.0009684, allocations: 91.5 kB / 21.2 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009767/0.0009767, allocations: 160.5 kB / 24.55 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9068/0.9068, allocations: 177 MB / 204.8 MB, free: 5.578 MB / 186.7 MB " [Timeout remaining time 179] 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=10000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..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=10000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.203e-06/1.203e-06, allocations: 0 / 273 MB, free: 1.395 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.455e-05/1.575e-05, allocations: 2.312 kB / 273 MB, free: 1.391 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.1269/0.1269, allocations: 37.31 MB / 310.3 MB, free: 9.414 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01539/0.1423, allocations: 10.23 MB / 320.5 MB, free: 1.941 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004256/0.1465, allocations: 330.1 kB / 320.8 MB, free: 1.832 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009371/0.1559, allocations: 9.727 MB / 330.5 MB, free: 9.105 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006973/0.1629, allocations: 4.133 MB / 334.7 MB, free: 4.949 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003231/0.1661, allocations: 2.466 MB / 337.1 MB, free: 2.484 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0111/0.1772, allocations: 14.86 MB / 352 MB, free: 3.582 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01752/0.1947, allocations: 16.96 MB / 369 MB, free: 2.461 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009586/0.2043, allocations: 10.96 MB / 379.9 MB, free: 7.484 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008001/0.2123, allocations: 7.671 MB / 387.6 MB, free: 15.8 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003372/0.2157, allocations: 2.023 MB / 389.6 MB, free: 13.78 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003353/0.219, allocations: 2.437 MB / 392 MB, free: 11.34 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002397/0.2214, allocations: 4.184 MB / 396.2 MB, free: 7.145 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005888/0.2273, allocations: 5.314 MB / 401.5 MB, free: 1.82 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01155/0.2389, allocations: 12.91 MB / 414.5 MB, free: 4.871 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2389, allocations: 0 / 414.5 MB, free: 4.871 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2389, allocations: 0 / 414.5 MB, free: 4.871 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002555/0.2391, allocations: 0 / 414.5 MB, free: 4.871 MB / 362.7 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.02112/0.2603, allocations: 16.95 MB / 431.4 MB, free: 3.789 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.2603, allocations: 11.98 kB / 431.4 MB, free: 3.777 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2367/0.497, allocations: 8.309 MB / 439.7 MB, free: 77.24 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009921/0.5069, allocations: 8.238 MB / 448 MB, free: 76.76 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003839/0.5073, allocations: 0.9028 MB / 448.9 MB, free: 76.73 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001287/0.5086, allocations: 1.199 MB / 450.1 MB, free: 76.72 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01539/0.5239, allocations: 10.33 MB / 460.4 MB, free: 75.68 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001812/0.5241, allocations: 17.03 kB / 460.4 MB, free: 75.68 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007328/0.5249, allocations: 0.4954 MB / 460.9 MB, free: 75.29 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003402/0.5252, allocations: 0.6468 MB / 461.6 MB, free: 75.23 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009153/0.5344, allocations: 5.475 MB / 467 MB, free: 73.28 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03698/0.5713, allocations: 49.83 MB / 0.5047 GB, free: 23.82 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01041/0.5817, allocations: 9.257 MB / 0.5138 GB, free: 15.62 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002712/0.5845, allocations: 1.816 MB / 0.5156 GB, free: 13.8 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009334/0.5938, allocations: 6.737 MB / 0.5221 GB, free: 7.305 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.633e-05/0.5938, allocations: 84.28 kB / 0.5222 GB, free: 7.215 MB / 378.8 MB Notification: Performance of pre-optimization done (n=402): time 7.093e-06/0.5938, allocations: 0 / 0.5222 GB, free: 7.215 MB / 378.8 MB Notification: Performance of matching and sorting (n=412): time 0.02481/0.6187, allocations: 13.18 MB / 0.5351 GB, free: 10.37 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.695e-05/0.6187, allocations: 123.6 kB / 0.5352 GB, free: 10.23 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005762/0.6245, allocations: 4.421 MB / 0.5395 GB, free: 5.801 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002073/0.6247, allocations: 89.7 kB / 0.5396 GB, free: 5.707 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003394/0.6281, allocations: 5.825 MB / 0.5453 GB, free: 15.86 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001095/0.6292, allocations: 1.522 MB / 0.5468 GB, free: 14.36 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001383/0.6306, allocations: 1.369 MB / 0.5481 GB, free: 12.97 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 9.396e-05/0.6307, allocations: 480.5 kB / 0.5486 GB, free: 12.5 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001625/0.6323, allocations: 0.9495 MB / 0.5495 GB, free: 11.55 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003285/0.6356, allocations: 4.701 MB / 0.5541 GB, free: 5.293 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005749/0.6413, allocations: 6.207 MB / 0.5602 GB, free: 13.82 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-05/0.6414, allocations: 28 kB / 0.5602 GB, free: 13.8 MB / 426.8 MB Notification: Performance of matching and sorting (n=828) (initialization): time 0.009233/0.6506, allocations: 5.942 MB / 0.566 GB, free: 8.352 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.841e-05/0.6506, allocations: 40 kB / 0.566 GB, free: 8.312 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.868e-05/0.6507, allocations: 84 kB / 0.5661 GB, free: 8.23 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002117/0.6528, allocations: 1.025 MB / 0.5671 GB, free: 7.188 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002907/0.6557, allocations: 1.467 MB / 0.5685 GB, free: 5.824 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008463/0.6642, allocations: 11.33 MB / 0.5796 GB, free: 10.1 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00288/0.6671, allocations: 343.8 kB / 0.5799 GB, free: 9.762 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003786/0.6675, allocations: 331.9 kB / 0.5803 GB, free: 9.438 MB / 442.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 (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.002395/0.6699, allocations: 0.5781 MB / 0.5808 GB, free: 8.949 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008342/0.6707, allocations: 0.6577 MB / 0.5815 GB, free: 8.289 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005767/0.6765, allocations: 3.986 MB / 0.5854 GB, free: 4.273 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003039/0.6795, allocations: 2.081 MB / 0.5874 GB, free: 2.176 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.051e-05/0.6795, allocations: 16 kB / 0.5874 GB, free: 2.16 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.612e-05/0.6795, allocations: 23.91 kB / 0.5874 GB, free: 2.137 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.148/0.8276, allocations: 12.13 MB / 0.5993 GB, free: 108.8 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.267e-05/0.8276, allocations: 4.281 kB / 0.5993 GB, free: 108.8 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001563/0.8291, allocations: 0.6877 MB / 0.5999 GB, free: 108.8 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002129/0.8313, allocations: 1.073 MB / 0.601 GB, free: 108.7 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000209/0.8315, allocations: 101.5 kB / 0.6011 GB, free: 108.7 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008383/0.8399, allocations: 15.8 MB / 0.6165 GB, free: 97.44 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.8399, allocations: 7.141 kB / 0.6165 GB, free: 97.44 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006802/0.8467, allocations: 5.139 MB / 0.6215 GB, free: 96.53 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001423/0.8481, allocations: 0.9731 MB / 0.6225 GB, free: 96.53 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004239/0.8485, allocations: 84.33 kB / 0.6226 GB, free: 96.53 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001144/0.8497, allocations: 205.2 kB / 0.6228 GB, free: 96.53 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004356/0.8501, allocations: 322.1 kB / 0.6231 GB, free: 96.52 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001765/0.8503, allocations: 131.7 kB / 0.6232 GB, free: 96.52 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.002433/0.8527, allocations: 2.141 MB / 0.6253 GB, free: 96.3 MB / 442.8 MB Notification: Performance of sort global known variables: time 8e-08/0.8527, allocations: 0 / 0.6253 GB, free: 96.3 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.004287/0.857, allocations: 1.952 MB / 0.6272 GB, free: 96.3 MB / 442.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 (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.0004523/0.8574, allocations: 284.3 kB / 0.6275 GB, free: 96.21 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.005486/0.8629, allocations: 4.801 MB / 0.6322 GB, free: 95.27 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.8629, allocations: 7.797 kB / 0.6322 GB, free: 95.27 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002708/0.8656, allocations: 3.05 MB / 0.6351 GB, free: 94.11 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002954/0.8686, allocations: 1.315 MB / 0.6364 GB, free: 93.99 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01938/0.888, allocations: 17.64 MB / 0.6537 GB, free: 83.87 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001976/0.8899, allocations: 3.101 MB / 0.6567 GB, free: 82.36 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.003037/0.893, allocations: 1.718 MB / 0.6584 GB, free: 81.27 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007196/0.8937, allocations: 406.2 kB / 0.6588 GB, free: 80.93 MB / 442.8 MB Notification: Performance of SimCode: time 2.074e-06/0.8937, allocations: 0 / 0.6588 GB, free: 80.93 MB / 442.8 MB Notification: Performance of Templates: time 0.0844/0.9781, allocations: 77.03 MB / 0.734 GB, free: 8.203 MB / 442.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) [Timeout 240] 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.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Mains/SMPM_Mains.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.320475962013006]