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.002562/0.002562, allocations: 99.53 kB / 20.97 MB, free: 3.457 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.003/0.003, allocations: 160.8 kB / 24.27 MB, free: 156 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 1.551/1.551, allocations: 177 MB / 204.4 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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.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=10000,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 272.2 MB, free: 1.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.256e-05/2.38e-05, allocations: 2.312 kB / 272.2 MB, free: 1.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.1543/0.1543, allocations: 37.02 MB / 309.3 MB, free: 9.602 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01878/0.1731, allocations: 10.22 MB / 319.5 MB, free: 2.234 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007179/0.1802, allocations: 328.8 kB / 319.8 MB, free: 2.125 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02372/0.204, allocations: 9.693 MB / 329.5 MB, free: 9.633 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01524/0.2192, allocations: 4.133 MB / 333.6 MB, free: 5.477 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008147/0.2274, allocations: 2.471 MB / 336.1 MB, free: 3.008 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0236/0.251, allocations: 14.85 MB / 350.9 MB, free: 4.117 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03297/0.2839, allocations: 16.95 MB / 367.9 MB, free: 3 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02261/0.3065, allocations: 10.94 MB / 378.8 MB, free: 8.043 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01551/0.322, allocations: 7.536 MB / 386.4 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.006238/0.3283, allocations: 2.023 MB / 388.4 MB, free: 14.46 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009084/0.3374, allocations: 2.436 MB / 390.8 MB, free: 12.03 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007345/0.3447, allocations: 4.2 MB / 395 MB, free: 7.82 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01234/0.357, allocations: 5.318 MB / 400.4 MB, free: 2.492 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03856/0.3956, allocations: 27.5 MB / 427.9 MB, free: 6.914 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.3956, allocations: 0 / 427.9 MB, free: 6.914 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3956, allocations: 0 / 427.9 MB, free: 6.914 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000637/0.3962, allocations: 0 / 427.9 MB, free: 6.914 MB / 378.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.2742/0.6705, allocations: 18.38 MB / 446.2 MB, free: 106.1 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.6705, allocations: 13.58 kB / 446.2 MB, free: 106.1 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03921/0.7097, allocations: 8.306 MB / 454.5 MB, free: 101.1 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01791/0.7276, allocations: 8.33 MB / 462.9 MB, free: 93.34 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000717/0.7283, allocations: 0.9097 MB / 463.8 MB, free: 92.45 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004499/0.7328, allocations: 1.194 MB / 465 MB, free: 91.26 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04122/0.7741, allocations: 19.43 MB / 484.4 MB, free: 71.68 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004181/0.7745, allocations: 27.89 kB / 484.4 MB, free: 71.66 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002625/0.7771, allocations: 498.6 kB / 484.9 MB, free: 71.18 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004784/0.7776, allocations: 0.6498 MB / 485.6 MB, free: 70.53 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02735/0.8049, allocations: 15.12 MB / 0.489 GB, free: 55.39 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3124/1.117, allocations: 106 MB / 0.5925 GB, free: 108.2 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01986/1.137, allocations: 10.32 MB / 0.6025 GB, free: 107.8 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004975/1.142, allocations: 3.249 MB / 0.6057 GB, free: 107.8 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01799/1.16, allocations: 9.515 MB / 0.615 GB, free: 106.6 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.386e-05/1.16, allocations: 93.03 kB / 0.6151 GB, free: 106.5 MB / 426.8 MB Notification: Performance of pre-optimization done (n=402): time 7.153e-06/1.16, allocations: 0 / 0.6151 GB, free: 106.5 MB / 426.8 MB Notification: Performance of matching and sorting (n=412): time 0.0372/1.197, allocations: 17.8 MB / 0.6325 GB, free: 102.8 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.568e-05/1.197, allocations: 123.6 kB / 0.6326 GB, free: 102.7 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008415/1.206, allocations: 6.789 MB / 0.6392 GB, free: 100.4 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007001/1.207, allocations: 91.55 kB / 0.6393 GB, free: 100.3 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003006/1.21, allocations: 6.186 MB / 0.6453 GB, free: 95.54 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001614/1.211, allocations: 1.645 MB / 0.647 GB, free: 94.18 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002149/1.213, allocations: 1.652 MB / 0.6486 GB, free: 93.21 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 5.219e-05/1.213, allocations: 484.7 kB / 0.649 GB, free: 92.73 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003147/1.217, allocations: 2.319 MB / 0.6513 GB, free: 91.54 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004623/1.221, allocations: 6.333 MB / 0.6575 GB, free: 85.29 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008476/1.23, allocations: 9.528 MB / 0.6668 GB, free: 75.21 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.129e-05/1.23, allocations: 24 kB / 0.6668 GB, free: 75.19 MB / 426.8 MB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01332/1.243, allocations: 8.911 MB / 0.6755 GB, free: 66.22 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.832e-05/1.243, allocations: 47.97 kB / 0.6756 GB, free: 66.17 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001064/1.243, allocations: 91.77 kB / 0.6756 GB, free: 66.09 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003543/1.247, allocations: 1.298 MB / 0.6769 GB, free: 64.77 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005016/1.252, allocations: 1.447 MB / 0.6783 GB, free: 63.32 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01306/1.265, allocations: 15.03 MB / 0.693 GB, free: 47.81 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005292/1.27, allocations: 347.6 kB / 0.6933 GB, free: 47.47 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008699/1.271, allocations: 328 kB / 0.6937 GB, free: 47.15 MB / 426.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.005199/1.276, allocations: 3.848 MB / 0.6974 GB, free: 43.29 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001343/1.278, allocations: 0.6529 MB / 0.698 GB, free: 42.63 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009704/1.287, allocations: 5.999 MB / 0.7039 GB, free: 36.55 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005143/1.292, allocations: 3.603 MB / 0.7074 GB, free: 32.89 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.726e-05/1.292, allocations: 12 kB / 0.7074 GB, free: 32.88 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.034e-05/1.292, allocations: 19.92 kB / 0.7075 GB, free: 32.86 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03015/1.323, allocations: 17.94 MB / 0.725 GB, free: 14.82 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.498e-05/1.323, allocations: 4 kB / 0.725 GB, free: 14.81 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002842/1.325, allocations: 0.6865 MB / 0.7256 GB, free: 14.12 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004011/1.329, allocations: 1.385 MB / 0.727 GB, free: 12.71 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004277/1.33, allocations: 99.97 kB / 0.7271 GB, free: 12.62 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0206/1.35, allocations: 19.85 MB / 0.7465 GB, free: 8.07 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.151e-05/1.351, allocations: 8.062 kB / 0.7465 GB, free: 8.062 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1706/1.521, allocations: 8.902 MB / 0.7552 GB, free: 122.7 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003374/1.524, allocations: 0.9752 MB / 0.7561 GB, free: 122.7 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001119/1.526, allocations: 77.53 kB / 0.7562 GB, free: 122.7 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00291/1.528, allocations: 208.9 kB / 0.7564 GB, free: 122.7 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007136/1.529, allocations: 330.8 kB / 0.7567 GB, free: 122.7 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002817/1.529, allocations: 124.9 kB / 0.7568 GB, free: 122.7 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.00478/1.534, allocations: 3.558 MB / 0.7603 GB, free: 122.4 MB / 442.8 MB Notification: Performance of sort global known variables: time 9e-08/1.534, allocations: 3.312 kB / 0.7603 GB, free: 122.4 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.007221/1.541, allocations: 1.949 MB / 0.7622 GB, free: 122.4 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.0007975/1.542, allocations: 287.3 kB / 0.7625 GB, free: 122.3 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.01092/1.553, allocations: 7.346 MB / 0.7697 GB, free: 121.2 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 9.258e-06/1.553, allocations: 7.906 kB / 0.7697 GB, free: 121.2 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005458/1.559, allocations: 4.099 MB / 0.7737 GB, free: 119.9 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006206/1.565, allocations: 1.308 MB / 0.775 GB, free: 119.9 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02931/1.594, allocations: 19.47 MB / 0.794 GB, free: 113.1 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006393/1.601, allocations: 6.408 MB / 0.8002 GB, free: 112.2 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.004688/1.605, allocations: 1.721 MB / 0.8019 GB, free: 111.7 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001058/1.606, allocations: 408.4 kB / 0.8023 GB, free: 111.3 MB / 442.8 MB Notification: Performance of SimCode: time 1.713e-06/1.606, allocations: 0 / 0.8023 GB, free: 111.3 MB / 442.8 MB Notification: Performance of Templates: time 0.1114/1.718, allocations: 73.06 MB / 0.8737 GB, free: 39.07 MB / 442.8 MB " [Timeout remaining time 658] 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","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.368001281982288]