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.00136/0.00136, allocations: 109.1 kB / 21.19 MB, free: 0.7617 MB / 14.72 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.001448/0.001448, allocations: 217 kB / 24.5 MB, free: 4.133 MB / 14.72 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.433/1.433, allocations: 230.5 MB / 258.1 MB, free: 8.02 MB / 206.1 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 0.001875/0.001875, allocations: 63.89 kB / 379.1 MB, free: 2.469 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2595, allocations: 53.41 MB / 432.5 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.04448/0.304, allocations: 38.13 MB / 470.6 MB, free: 468 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02578/0.3298, allocations: 10.34 MB / 481 MB, free: 6.082 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008912/0.3387, allocations: 330.2 kB / 481.3 MB, free: 5.758 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02407/0.3627, allocations: 9.264 MB / 490.5 MB, free: 12.47 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01634/0.3791, allocations: 4.102 MB / 494.7 MB, free: 8.352 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009263/0.3883, allocations: 2.496 MB / 497.1 MB, free: 5.863 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02346/0.4118, allocations: 14.33 MB / 0.4995 GB, free: 7.492 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03789/0.4497, allocations: 17.12 MB / 0.5162 GB, free: 6.211 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01557/0.4653, allocations: 7.371 MB / 0.5234 GB, free: 14.82 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01556/0.4808, allocations: 8.156 MB / 0.5314 GB, free: 6.637 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00624/0.4871, allocations: 2.027 MB / 0.5334 GB, free: 4.609 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00947/0.4965, allocations: 2.457 MB / 0.5358 GB, free: 2.152 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.4622/0.9587, allocations: 4.04 MB / 0.5397 GB, free: 32.49 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.019/0.9777, allocations: 7.827 MB / 0.5473 GB, free: 32.01 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03298/1.011, allocations: 27.06 MB / 0.5738 GB, free: 24.5 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/1.011, allocations: 7.375 kB / 0.5738 GB, free: 24.5 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.124e-06/1.011, allocations: 0 / 0.5738 GB, free: 24.5 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0008374/1.012, allocations: 0 / 0.5738 GB, free: 24.5 MB / 446.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.05232/1.064, allocations: 16.11 MB / 0.5895 GB, free: 14.28 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/1.064, allocations: 7.906 kB / 0.5895 GB, free: 14.28 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03581/1.1, allocations: 6.428 MB / 0.5958 GB, free: 11.32 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0209/1.121, allocations: 8.663 MB / 0.6043 GB, free: 5.48 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008144/1.121, allocations: 0.9068 MB / 0.6051 GB, free: 4.586 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005178/1.127, allocations: 1.192 MB / 0.6063 GB, free: 3.406 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05282/1.179, allocations: 18.8 MB / 0.6247 GB, free: 0.5391 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005832/1.18, allocations: 23.56 kB / 0.6247 GB, free: 0.5195 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004627/1.185, allocations: 498.9 kB / 0.6252 GB, free: 44 kB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008135/1.185, allocations: 0.6614 MB / 0.6258 GB, free: 15.38 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04073/1.226, allocations: 17.04 MB / 0.6424 GB, free: 14.34 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1275/1.354, allocations: 60.42 MB / 0.7015 GB, free: 1.715 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02323/1.377, allocations: 10.95 MB / 0.7121 GB, free: 7.867 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00729/1.384, allocations: 3.68 MB / 0.7157 GB, free: 4.18 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02532/1.41, allocations: 10.02 MB / 0.7255 GB, free: 10.29 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.148e-05/1.41, allocations: 81.78 kB / 0.7256 GB, free: 10.2 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=402): time 7.404e-06/1.41, allocations: 0 / 0.7256 GB, free: 10.2 MB / 0.5607 GB Notification: Performance of matching and sorting (n=412): time 0.05229/1.462, allocations: 19.72 MB / 0.7449 GB, free: 6.414 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/1.462, allocations: 128.3 kB / 0.745 GB, free: 6.266 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01103/1.473, allocations: 5.195 MB / 0.75 GB, free: 1.082 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.001003/1.474, allocations: 93.7 kB / 0.7501 GB, free: 0.9844 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.2797/1.754, allocations: 5.547 MB / 0.7556 GB, free: 200.6 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002491/1.756, allocations: 1.497 MB / 0.757 GB, free: 199.6 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003564/1.76, allocations: 1.262 MB / 0.7582 GB, free: 199.5 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 9.179e-05/1.76, allocations: 306.1 kB / 0.7585 GB, free: 199.2 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004994/1.765, allocations: 2.858 MB / 0.7613 GB, free: 199.2 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006729/1.772, allocations: 5.356 MB / 0.7666 GB, free: 196.2 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01169/1.783, allocations: 8.749 MB / 0.7751 GB, free: 190.7 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002618/1.784, allocations: 23.59 kB / 0.7751 GB, free: 190.7 MB / 0.5763 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.02021/1.804, allocations: 9.629 MB / 0.7845 GB, free: 186.7 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001149/1.804, allocations: 41.59 kB / 0.7846 GB, free: 186.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001744/1.804, allocations: 81.38 kB / 0.7846 GB, free: 186.7 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002895/1.807, allocations: 1.123 MB / 0.7857 GB, free: 186.4 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005651/1.813, allocations: 1.451 MB / 0.7872 GB, free: 186.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01459/1.827, allocations: 13.06 MB / 0.7999 GB, free: 177.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00654/1.834, allocations: 360 kB / 0.8003 GB, free: 177.1 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001577/1.835, allocations: 322 kB / 0.8006 GB, free: 177.1 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.009502/1.845, allocations: 4.234 MB / 0.8047 GB, free: 174.3 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001601/1.846, allocations: 0.5674 MB / 0.8053 GB, free: 173.7 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01142/1.858, allocations: 6.899 MB / 0.812 GB, free: 167.9 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005659/1.864, allocations: 4.218 MB / 0.8161 GB, free: 164.2 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-05/1.864, allocations: 16 kB / 0.8161 GB, free: 164.2 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.028e-05/1.864, allocations: 22.55 kB / 0.8161 GB, free: 164.2 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03533/1.899, allocations: 16.86 MB / 0.8326 GB, free: 149.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.738e-05/1.899, allocations: 8.578 kB / 0.8326 GB, free: 149.3 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002967/1.902, allocations: 0.6942 MB / 0.8333 GB, free: 148.7 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003057/1.905, allocations: 1.18 MB / 0.8345 GB, free: 147.4 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007615/1.906, allocations: 108 kB / 0.8346 GB, free: 147.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01577/1.922, allocations: 16.77 MB / 0.8509 GB, free: 129.9 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/1.922, allocations: 8.156 kB / 0.8509 GB, free: 129.9 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01517/1.937, allocations: 10.14 MB / 0.8608 GB, free: 119.6 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003683/1.94, allocations: 1.086 MB / 0.8619 GB, free: 118.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001574/1.942, allocations: 84 kB / 0.862 GB, free: 118.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003306/1.945, allocations: 207.8 kB / 0.8622 GB, free: 118.3 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007222/1.946, allocations: 323.2 kB / 0.8625 GB, free: 117.9 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002755/1.946, allocations: 124 kB / 0.8626 GB, free: 117.8 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.005832/1.952, allocations: 3.489 MB / 0.866 GB, free: 114.3 MB / 0.5763 GB Notification: Performance of sort global known variables: time 8e-08/1.952, allocations: 3.609 kB / 0.866 GB, free: 114.3 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.009235/1.961, allocations: 1.957 MB / 0.8679 GB, free: 112.4 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.001132/1.963, allocations: 277.4 kB / 0.8682 GB, free: 112.1 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.0115/1.974, allocations: 7.35 MB / 0.8754 GB, free: 104.7 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/1.974, allocations: 0 / 0.8754 GB, free: 104.7 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.006087/1.98, allocations: 3.865 MB / 0.8791 GB, free: 100.8 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009281/1.989, allocations: 1.456 MB / 0.8806 GB, free: 99.36 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04774/2.037, allocations: 20.42 MB / 0.9005 GB, free: 78.84 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01053/2.048, allocations: 7.14 MB / 0.9075 GB, free: 71.66 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002249/2.05, allocations: 491.3 kB / 0.908 GB, free: 71.18 MB / 0.5763 GB Notification: Performance of SimCode: time 1.452e-06/2.05, allocations: 0 / 0.908 GB, free: 71.18 MB / 0.5763 GB Notification: Performance of Templates: time 1.046/3.096, allocations: 0.4984 GB / 1.406 GB, free: 34.91 MB / 0.6075 GB " [Timeout remaining time 657] 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat","/var/lib/jenkins1/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/jenkins1/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: 24.979534250916913]