Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|currentController.PI_d.x|currentController.PI_q.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|currentController.PI_d.x|currentController.PI_q.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009495/0.0009495, allocations: 199.2 kB / 18.06 MB, free: 3.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.272/1.272, allocations: 226.5 MB / 245.3 MB, free: 6.523 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007678/0.000768, allocations: 90 kB / 297.4 MB, free: 6.695 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002348/0.0002348, allocations: 8 kB / 357.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.246/0.2463, allocations: 51.28 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3978/0.6441, allocations: 121 MB / 0.5173 GB, free: 96.12 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002461/0.6444, allocations: 104.8 kB / 0.5174 GB, free: 96.06 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1819/0.8263, allocations: 83.21 MB / 0.5986 GB, free: 12.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.8264, allocations: 0 / 0.5986 GB, free: 12.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000336/0.8267, allocations: 99.81 kB / 0.5987 GB, free: 12.65 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01029/0.837, allocations: 3.854 MB / 0.6025 GB, free: 8.723 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.8371, allocations: 8.031 kB / 0.6025 GB, free: 8.715 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003193/0.8403, allocations: 0.6518 MB / 0.6031 GB, free: 8.059 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005924/0.8462, allocations: 2.824 MB / 0.6059 GB, free: 5.184 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001514/0.8464, allocations: 267.3 kB / 0.6061 GB, free: 4.922 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005614/0.8469, allocations: 340.3 kB / 0.6065 GB, free: 4.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006528/0.8535, allocations: 4.425 MB / 0.6108 GB, free: 24 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.089e-05/0.8536, allocations: 3.938 kB / 0.6108 GB, free: 20 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000363/0.8539, allocations: 148 kB / 0.6109 GB, free: 15.87 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001677/0.8541, allocations: 158.7 kB / 0.6111 GB, free: 15.72 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006889/0.861, allocations: 3.525 MB / 0.6145 GB, free: 12.19 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02976/0.8908, allocations: 14.76 MB / 0.6289 GB, free: 12.96 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006307/0.8972, allocations: 5.646 MB / 0.6344 GB, free: 6.57 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003094/0.9003, allocations: 1.607 MB / 0.636 GB, free: 4.965 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008291/0.9086, allocations: 4.289 MB / 0.6402 GB, free: 0.5352 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.547e-05/0.9087, allocations: 43.88 kB / 0.6402 GB, free: 496 kB / 410.7 MB Notification: Performance of pre-optimization done (n=128): time 4.058e-06/0.9087, allocations: 0 / 0.6402 GB, free: 496 kB / 410.7 MB Notification: Performance of matching and sorting (n=132): time 0.01098/0.9197, allocations: 5.729 MB / 0.6458 GB, free: 10.59 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.306e-05/0.9198, allocations: 64.72 kB / 0.6459 GB, free: 10.51 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004219/0.924, allocations: 2.108 MB / 0.648 GB, free: 8.371 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001396/0.9242, allocations: 49.64 kB / 0.648 GB, free: 8.316 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001446/0.9256, allocations: 1.669 MB / 0.6496 GB, free: 6.629 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004659/0.9261, allocations: 465.3 kB / 0.6501 GB, free: 6.168 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001186/0.9262, allocations: 40 kB / 0.6501 GB, free: 6.129 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002034/0.9264, allocations: 385.8 kB / 0.6505 GB, free: 5.746 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001323/0.9278, allocations: 0.734 MB / 0.6512 GB, free: 5.012 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001729/0.9295, allocations: 1.346 MB / 0.6525 GB, free: 3.391 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003411/0.9329, allocations: 2.239 MB / 0.6547 GB, free: 0.875 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.092e-05/0.933, allocations: 8 kB / 0.6547 GB, free: 0.8672 MB / 426.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.00492/0.9379, allocations: 2.6 MB / 0.6572 GB, free: 14.23 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.698e-05/0.9379, allocations: 12 kB / 0.6573 GB, free: 14.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.562e-05/0.938, allocations: 20 kB / 0.6573 GB, free: 14.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005486/0.9386, allocations: 186.6 kB / 0.6575 GB, free: 14.01 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00167/0.9402, allocations: 459.2 kB / 0.6579 GB, free: 13.56 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003487/0.9437, allocations: 3.492 MB / 0.6613 GB, free: 9.793 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001875/0.9456, allocations: 123.7 kB / 0.6614 GB, free: 9.672 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002048/0.9458, allocations: 83.94 kB / 0.6615 GB, free: 9.59 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 89 * 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 (221): * Single equations (assignments): 218 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002597/0.9485, allocations: 1.055 MB / 0.6625 GB, free: 8.523 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006073/0.9491, allocations: 221.3 kB / 0.6627 GB, free: 8.305 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004391/0.9535, allocations: 2.287 MB / 0.665 GB, free: 5.961 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.475e-05/0.9535, allocations: 15.94 kB / 0.665 GB, free: 5.945 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.645e-05/0.9535, allocations: 8 kB / 0.665 GB, free: 5.938 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.342e-05/0.9535, allocations: 3.984 kB / 0.665 GB, free: 5.934 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01106/0.9646, allocations: 5.329 MB / 0.6702 GB, free: 472 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.976e-06/0.9646, allocations: 3.938 kB / 0.6702 GB, free: 468 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001022/0.9657, allocations: 231.6 kB / 0.6704 GB, free: 236 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2272/1.193, allocations: 314.5 kB / 0.6707 GB, free: 86.59 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003364/1.193, allocations: 36.14 kB / 0.6708 GB, free: 86.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006481/1.2, allocations: 7.556 MB / 0.6781 GB, free: 81.38 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/1.2, allocations: 3.281 kB / 0.6781 GB, free: 81.38 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004823/1.205, allocations: 3.325 MB / 0.6814 GB, free: 80.9 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001139/1.206, allocations: 469.1 kB / 0.6818 GB, free: 80.81 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003817/1.206, allocations: 25.25 kB / 0.6819 GB, free: 80.81 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001084/1.207, allocations: 82.06 kB / 0.6819 GB, free: 80.81 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002353/1.208, allocations: 94.69 kB / 0.682 GB, free: 80.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.998e-05/1.208, allocations: 41.36 kB / 0.6821 GB, free: 80.8 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002176/1.21, allocations: 1.425 MB / 0.6835 GB, free: 80.66 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.71e-07/1.21, allocations: 0 / 0.6835 GB, free: 80.66 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002374/1.212, allocations: 0.6264 MB / 0.6841 GB, free: 80.66 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,currentController.PI_d.x,currentController.PI_q.x) * 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 (109): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007082/1.213, allocations: 488.7 kB / 0.6845 GB, free: 80.56 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003041/1.216, allocations: 2.153 MB / 0.6866 GB, free: 80.21 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/1.216, allocations: 0 / 0.6866 GB, free: 80.21 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001853/1.218, allocations: 1.425 MB / 0.688 GB, free: 79.75 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003394/1.221, allocations: 0.524 MB / 0.6885 GB, free: 79.74 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01103/1.232, allocations: 7.399 MB / 0.6958 GB, free: 76.57 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001955/1.234, allocations: 2.368 MB / 0.6981 GB, free: 75.81 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009444/1.235, allocations: 171.8 kB / 0.6982 GB, free: 75.8 MB / 442.7 MB Notification: Performance of SimCode: time 8.42e-07/1.235, allocations: 4 kB / 0.6983 GB, free: 75.8 MB / 442.7 MB Notification: Performance of Templates: time 0.08877/1.324, allocations: 101.3 MB / 0.7972 GB, free: 17.78 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches