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.001307/0.001307, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001385/0.001385, allocations: 205.8 kB / 18.13 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.4 MB / 246.3 MB, free: 10.86 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 67.75 kB / 306.3 MB, free: 1.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09675/0.09793, allocations: 50.54 MB / 356.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.1857/0.2837, allocations: 37.23 MB / 394.1 MB, free: 384 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0221/0.3058, allocations: 10.17 MB / 404.2 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007615/0.3135, allocations: 264.6 kB / 404.5 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01977/0.3333, allocations: 8.545 MB / 413 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01278/0.3461, allocations: 3.574 MB / 416.6 MB, free: 44 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007137/0.3533, allocations: 2.256 MB / 418.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02063/0.3739, allocations: 14.5 MB / 433.4 MB, free: 396 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03507/0.409, allocations: 20.94 MB / 454.3 MB, free: 11.29 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01086/0.4199, allocations: 6.137 MB / 460.4 MB, free: 5.137 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0112/0.4311, allocations: 7.488 MB / 467.9 MB, free: 13.62 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005511/0.4367, allocations: 1.297 MB / 469.2 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007684/0.4444, allocations: 1.707 MB / 470.9 MB, free: 10.62 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005614/0.45, allocations: 3.279 MB / 474.2 MB, free: 7.328 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01334/0.4634, allocations: 7.063 MB / 481.3 MB, free: 240 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03212/0.4955, allocations: 26.32 MB / 0.4957 GB, free: 5.836 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.397e-05/0.4956, allocations: 3.938 kB / 0.4957 GB, free: 5.832 MB / 414.1 MB Notification: Performance of FrontEnd: time 6.011e-06/0.4956, allocations: 4 kB / 0.4957 GB, free: 5.828 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.001041/0.4967, allocations: 3.938 kB / 0.4957 GB, free: 5.824 MB / 414.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.04649/0.5432, allocations: 15.94 MB / 0.5113 GB, free: 5.762 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.5433, allocations: 8.031 kB / 0.5113 GB, free: 5.754 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03733/0.5806, allocations: 6.408 MB / 0.5175 GB, free: 15.32 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0176/0.5982, allocations: 8.32 MB / 0.5257 GB, free: 6.926 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007866/0.5991, allocations: 0.9071 MB / 0.5266 GB, free: 6.016 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003908/0.603, allocations: 1.195 MB / 0.5277 GB, free: 4.82 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3597/0.9626, allocations: 18.79 MB / 0.5461 GB, free: 119.4 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004895/0.9632, allocations: 24.05 kB / 0.5461 GB, free: 119.4 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00271/0.9659, allocations: 0.4894 MB / 0.5466 GB, free: 119 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007015/0.9666, allocations: 0.6533 MB / 0.5472 GB, free: 118.9 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03338/1, allocations: 17.02 MB / 0.5638 GB, free: 112 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08962/1.09, allocations: 63.93 MB / 0.6263 GB, free: 50.9 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0196/1.109, allocations: 30.04 MB / 0.6556 GB, free: 17.32 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005416/1.115, allocations: 4.09 MB / 0.6596 GB, free: 13.22 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01562/1.13, allocations: 10.48 MB / 0.6698 GB, free: 2.703 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.231e-05/1.13, allocations: 81.75 kB / 0.6699 GB, free: 2.613 MB / 446.1 MB Notification: Performance of pre-optimization done (n=408): time 5.4e-06/1.13, allocations: 0 / 0.6699 GB, free: 2.613 MB / 446.1 MB Notification: Performance of matching and sorting (n=418): time 0.0432/1.174, allocations: 20.38 MB / 0.6898 GB, free: 13.89 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.357e-05/1.174, allocations: 120.4 kB / 0.6899 GB, free: 13.75 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008942/1.183, allocations: 5.186 MB / 0.695 GB, free: 8.574 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004145/1.183, allocations: 93.7 kB / 0.6951 GB, free: 8.477 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00354/1.187, allocations: 5.355 MB / 0.7003 GB, free: 3.09 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001419/1.188, allocations: 1.443 MB / 0.7017 GB, free: 1.656 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00228/1.19, allocations: 1.247 MB / 0.7029 GB, free: 408 kB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.836e-05/1.191, allocations: 309.1 kB / 0.7032 GB, free: 96 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004678/1.195, allocations: 2.888 MB / 0.706 GB, free: 13.2 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006351/1.202, allocations: 5.393 MB / 0.7113 GB, free: 6.656 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2143/1.416, allocations: 8.799 MB / 0.7199 GB, free: 151.7 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.221e-05/1.416, allocations: 28.09 kB / 0.7199 GB, free: 151.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=834) (initialization): time 0.01658/1.433, allocations: 9.764 MB / 0.7295 GB, free: 148.3 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.815e-05/1.433, allocations: 40.12 kB / 0.7295 GB, free: 148.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001417/1.433, allocations: 84.06 kB / 0.7296 GB, free: 148.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00309/1.436, allocations: 1.12 MB / 0.7307 GB, free: 148 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005393/1.441, allocations: 1.449 MB / 0.7321 GB, free: 147.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01346/1.455, allocations: 12.52 MB / 0.7443 GB, free: 139.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00535/1.46, allocations: 358 kB / 0.7447 GB, free: 139.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001142/1.461, allocations: 324.1 kB / 0.745 GB, free: 139.1 MB / 494.1 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 (767): * Single equations (assignments): 758 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.008149/1.47, allocations: 4.233 MB / 0.7491 GB, free: 137 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001742/1.471, allocations: 0.5322 MB / 0.7496 GB, free: 137 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01213/1.483, allocations: 7.168 MB / 0.7566 GB, free: 134 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006075/1.49, allocations: 4.311 MB / 0.7608 GB, free: 132.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.196e-05/1.49, allocations: 14.12 kB / 0.7608 GB, free: 132.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.944e-05/1.49, allocations: 22.73 kB / 0.7609 GB, free: 132.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02891/1.519, allocations: 17.1 MB / 0.7776 GB, free: 124.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.495e-05/1.519, allocations: 4 kB / 0.7776 GB, free: 124.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002792/1.521, allocations: 0.6926 MB / 0.7782 GB, free: 124.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002968/1.524, allocations: 1.184 MB / 0.7794 GB, free: 123.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003208/1.525, allocations: 95.31 kB / 0.7795 GB, free: 123.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01572/1.54, allocations: 16.03 MB / 0.7951 GB, free: 107.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/1.541, allocations: 11.94 kB / 0.7952 GB, free: 107.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01471/1.555, allocations: 10.4 MB / 0.8053 GB, free: 96.97 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002808/1.558, allocations: 1.126 MB / 0.8064 GB, free: 95.84 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008215/1.559, allocations: 83.98 kB / 0.8065 GB, free: 95.75 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002376/1.561, allocations: 211.8 kB / 0.8067 GB, free: 95.55 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000677/1.562, allocations: 307.3 kB / 0.807 GB, free: 95.25 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002557/1.562, allocations: 120 kB / 0.8071 GB, free: 95.13 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004513/1.567, allocations: 3.489 MB / 0.8105 GB, free: 91.66 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.31e-07/1.567, allocations: 0 / 0.8105 GB, free: 91.66 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00622/1.573, allocations: 1.967 MB / 0.8124 GB, free: 89.7 MB / 494.1 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 (356): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,48.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.0006748/1.574, allocations: 283.4 kB / 0.8127 GB, free: 89.42 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01042/1.584, allocations: 7.774 MB / 0.8203 GB, free: 81.57 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.125e-06/1.584, allocations: 0 / 0.8203 GB, free: 81.57 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005723/1.59, allocations: 4.141 MB / 0.8243 GB, free: 77.35 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006519/1.596, allocations: 1.364 MB / 0.8257 GB, free: 76.02 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03327/1.63, allocations: 25.71 MB / 0.8508 GB, free: 50.24 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008452/1.638, allocations: 7.377 MB / 0.858 GB, free: 42.83 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006262/1.645, allocations: 2.001 MB / 0.8599 GB, free: 40.82 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001342/1.646, allocations: 399.4 kB / 0.8603 GB, free: 40.43 MB / 494.1 MB Notification: Performance of SimCode: time 1.082e-06/1.646, allocations: 0 / 0.8603 GB, free: 40.43 MB / 494.1 MB Notification: Performance of Templates: time 0.3255/1.971, allocations: 82.67 MB / 0.941 GB, free: 126.6 MB / 494.1 MB 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