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.001394/0.001394, 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.001436/0.001436, 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.9184/0.9184, allocations: 177 MB / 204.8 MB, free: 5.586 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.412e-06/1.412e-06, allocations: 0 / 273 MB, free: 1.406 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.444e-05/1.585e-05, allocations: 2.312 kB / 273 MB, free: 1.402 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.1507/0.1507, allocations: 37.31 MB / 310.3 MB, free: 8.887 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.017/0.1677, allocations: 10.22 MB / 320.5 MB, free: 1.793 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003081/0.1708, allocations: 335.1 kB / 320.8 MB, free: 1.68 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01207/0.1828, allocations: 9.725 MB / 330.5 MB, free: 8.973 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00719/0.19, allocations: 4.133 MB / 334.7 MB, free: 4.816 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005475/0.1955, allocations: 2.466 MB / 337.1 MB, free: 2.352 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01271/0.2082, allocations: 14.86 MB / 352 MB, free: 3.449 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01866/0.2269, allocations: 16.95 MB / 369 MB, free: 2.332 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01292/0.2398, allocations: 10.95 MB / 379.9 MB, free: 7.367 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009455/0.2492, allocations: 7.569 MB / 387.5 MB, free: 15.79 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002422/0.2517, allocations: 2.023 MB / 389.5 MB, free: 13.76 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003007/0.2547, allocations: 2.437 MB / 391.9 MB, free: 11.32 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0025/0.2572, allocations: 4.188 MB / 396.1 MB, free: 7.125 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00478/0.262, allocations: 5.322 MB / 401.4 MB, free: 1.793 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01172/0.2737, allocations: 12.93 MB / 414.4 MB, free: 4.828 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.2737, allocations: 4 kB / 414.4 MB, free: 4.824 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2737, allocations: 0 / 414.4 MB, free: 4.824 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001364/0.2738, allocations: 0 / 414.4 MB, free: 4.824 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.02059/0.2944, allocations: 16.95 MB / 431.3 MB, free: 3.738 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/0.2945, allocations: 19.92 kB / 431.3 MB, free: 3.719 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2679/0.5623, allocations: 8.294 MB / 439.6 MB, free: 71.61 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01262/0.5749, allocations: 8.262 MB / 447.9 MB, free: 71.13 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005236/0.5755, allocations: 0.9023 MB / 448.8 MB, free: 71.11 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002011/0.5775, allocations: 1.196 MB / 450 MB, free: 71.09 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01617/0.5936, allocations: 10.33 MB / 460.3 MB, free: 70.07 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001992/0.5938, allocations: 15.81 kB / 460.3 MB, free: 70.06 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007722/0.5946, allocations: 0.4925 MB / 460.8 MB, free: 70.06 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003636/0.595, allocations: 0.6525 MB / 461.5 MB, free: 70.04 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01046/0.6054, allocations: 5.478 MB / 467 MB, free: 69.42 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04608/0.6515, allocations: 49.83 MB / 0.5047 GB, free: 20.93 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009666/0.6612, allocations: 9.253 MB / 0.5137 GB, free: 12.74 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002144/0.6633, allocations: 1.818 MB / 0.5155 GB, free: 10.92 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007709/0.671, allocations: 6.743 MB / 0.5221 GB, free: 4.426 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.918e-05/0.6711, allocations: 80.62 kB / 0.5222 GB, free: 4.336 MB / 378.8 MB Notification: Performance of pre-optimization done (n=402): time 5.2e-06/0.6711, allocations: 0 / 0.5222 GB, free: 4.336 MB / 378.8 MB Notification: Performance of matching and sorting (n=412): time 0.02029/0.6914, allocations: 13.19 MB / 0.535 GB, free: 7.48 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.888e-05/0.6914, allocations: 120.4 kB / 0.5351 GB, free: 7.344 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00441/0.6958, allocations: 4.414 MB / 0.5395 GB, free: 2.918 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002186/0.6961, allocations: 101.7 kB / 0.5396 GB, free: 2.812 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002546/0.6986, allocations: 5.812 MB / 0.5452 GB, free: 12.98 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008547/0.6995, allocations: 1.527 MB / 0.5467 GB, free: 11.47 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001346/0.7008, allocations: 1.376 MB / 0.5481 GB, free: 10.08 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 9.296e-05/0.7009, allocations: 480.7 kB / 0.5485 GB, free: 9.609 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001554/0.7024, allocations: 0.9456 MB / 0.5494 GB, free: 8.66 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003172/0.7056, allocations: 4.698 MB / 0.554 GB, free: 2.406 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005217/0.7108, allocations: 6.213 MB / 0.5601 GB, free: 10.93 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-05/0.7109, allocations: 24 kB / 0.5601 GB, free: 10.91 MB / 426.8 MB Notification: Performance of matching and sorting (n=828) (initialization): time 0.008069/0.7189, allocations: 5.938 MB / 0.5659 GB, free: 5.465 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.986e-05/0.719, allocations: 40 kB / 0.566 GB, free: 5.426 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.223e-05/0.719, allocations: 80 kB / 0.566 GB, free: 5.348 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002027/0.7211, allocations: 1.039 MB / 0.5671 GB, free: 4.293 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002708/0.7238, allocations: 1.457 MB / 0.5685 GB, free: 2.941 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0087/0.7325, allocations: 11.33 MB / 0.5795 GB, free: 7.207 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003213/0.7357, allocations: 343.8 kB / 0.5799 GB, free: 6.871 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004942/0.7362, allocations: 331.9 kB / 0.5802 GB, free: 6.547 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.002304/0.7385, allocations: 0.5892 MB / 0.5808 GB, free: 6.051 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008623/0.7394, allocations: 0.6529 MB / 0.5814 GB, free: 5.395 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005674/0.745, allocations: 3.979 MB / 0.5853 GB, free: 1.383 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1404/0.8854, allocations: 2.076 MB / 0.5873 GB, free: 109.8 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.434e-05/0.8854, allocations: 14.91 kB / 0.5873 GB, free: 109.8 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.541e-05/0.8855, allocations: 27.53 kB / 0.5874 GB, free: 109.8 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01857/0.9041, allocations: 12.13 MB / 0.5992 GB, free: 108.7 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.074e-05/0.9041, allocations: 2.656 kB / 0.5992 GB, free: 108.7 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001497/0.9056, allocations: 0.6824 MB / 0.5999 GB, free: 108.7 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002111/0.9077, allocations: 1.082 MB / 0.6009 GB, free: 108.6 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002133/0.9079, allocations: 103.9 kB / 0.601 GB, free: 108.6 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008476/0.9164, allocations: 15.79 MB / 0.6165 GB, free: 97.38 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.9164, allocations: 9.984 kB / 0.6165 GB, free: 97.38 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007227/0.9236, allocations: 5.14 MB / 0.6215 GB, free: 96.47 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001564/0.9252, allocations: 0.9759 MB / 0.6224 GB, free: 96.47 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000401/0.9256, allocations: 88.2 kB / 0.6225 GB, free: 96.47 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001153/0.9268, allocations: 200.4 kB / 0.6227 GB, free: 96.47 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000426/0.9272, allocations: 324.9 kB / 0.623 GB, free: 96.46 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001803/0.9274, allocations: 137.1 kB / 0.6231 GB, free: 96.46 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.00245/0.9298, allocations: 2.138 MB / 0.6252 GB, free: 96.24 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.6e-07/0.9298, allocations: 0 / 0.6252 GB, free: 96.24 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.004416/0.9342, allocations: 1.957 MB / 0.6271 GB, free: 96.24 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.0004399/0.9347, allocations: 272.8 kB / 0.6274 GB, free: 96.15 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.005475/0.9402, allocations: 4.803 MB / 0.6321 GB, free: 95.21 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.9402, allocations: 2.219 kB / 0.6321 GB, free: 95.21 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002725/0.9429, allocations: 3.052 MB / 0.6351 GB, free: 94.06 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003072/0.946, allocations: 1.305 MB / 0.6364 GB, free: 93.94 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02015/0.9661, allocations: 17.67 MB / 0.6536 GB, free: 82.94 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002321/0.9684, allocations: 3.1 MB / 0.6566 GB, free: 81 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.003082/0.9715, allocations: 1.713 MB / 0.6583 GB, free: 79.91 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007347/0.9722, allocations: 414.1 kB / 0.6587 GB, free: 79.54 MB / 442.8 MB Notification: Performance of SimCode: time 1.613e-06/0.9722, allocations: 0 / 0.6587 GB, free: 79.54 MB / 442.8 MB Notification: Performance of Templates: time 0.0831/1.055, allocations: 73.18 MB / 0.7302 GB, free: 9.52 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.623575368896127]