Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_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.001559/0.001559, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.228/1.228, allocations: 227.2 MB / 245 MB, free: 7.586 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000914/0.0009143, allocations: 106.4 kB / 297.3 MB, free: 6.176 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000198/0.0001982, allocations: 4 kB / 357.9 MB, free: 9.512 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1934/0.1937, allocations: 51.48 MB / 409.4 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2925/0.4862, allocations: 120.9 MB / 0.5179 GB, free: 94.54 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002401/0.4865, allocations: 98.06 kB / 0.518 GB, free: 94.48 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1742/0.6607, allocations: 83.42 MB / 0.5994 GB, free: 10.95 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.6608, allocations: 0 / 0.5994 GB, free: 10.95 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002877/0.6611, allocations: 95.81 kB / 0.5995 GB, free: 10.86 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.01/0.6711, allocations: 3.893 MB / 0.6033 GB, free: 6.895 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.255e-05/0.6711, allocations: 12.03 kB / 0.6033 GB, free: 6.883 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003418/0.6746, allocations: 0.6509 MB / 0.604 GB, free: 6.227 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008958/0.6836, allocations: 3.426 MB / 0.6073 GB, free: 2.746 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002253/0.6838, allocations: 262.9 kB / 0.6076 GB, free: 2.488 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001024/0.6848, allocations: 351.8 kB / 0.6079 GB, free: 2.145 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009719/0.6946, allocations: 4.386 MB / 0.6122 GB, free: 13.62 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.159e-05/0.6947, allocations: 11.91 kB / 0.6122 GB, free: 13.61 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004124/0.6951, allocations: 144 kB / 0.6123 GB, free: 13.46 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001553/0.6953, allocations: 166.7 kB / 0.6125 GB, free: 13.3 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007047/0.7023, allocations: 3.521 MB / 0.6159 GB, free: 9.773 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0251/0.7275, allocations: 14.73 MB / 0.6303 GB, free: 10.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005174/0.7327, allocations: 5.645 MB / 0.6358 GB, free: 4.176 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006103/0.7388, allocations: 3.446 MB / 0.6392 GB, free: 0.6094 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.113e-05/0.7389, allocations: 51.81 kB / 0.6393 GB, free: 0.5508 MB / 410.7 MB Notification: Performance of pre-optimization done (n=136): time 2.745e-06/0.7389, allocations: 0 / 0.6393 GB, free: 0.5508 MB / 410.7 MB Notification: Performance of matching and sorting (n=141): time 0.01075/0.7497, allocations: 5.801 MB / 0.6449 GB, free: 10.6 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.25e-05/0.7497, allocations: 68.72 kB / 0.645 GB, free: 10.52 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003163/0.7529, allocations: 1.854 MB / 0.6468 GB, free: 8.637 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.353e-05/0.753, allocations: 49.7 kB / 0.6468 GB, free: 8.582 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000988/0.754, allocations: 1.658 MB / 0.6485 GB, free: 6.906 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003417/0.7544, allocations: 488.9 kB / 0.6489 GB, free: 6.422 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.138e-05/0.7545, allocations: 40 kB / 0.649 GB, free: 6.383 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.7546, allocations: 378.1 kB / 0.6493 GB, free: 6.008 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001102/0.7557, allocations: 0.7457 MB / 0.6501 GB, free: 5.262 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00141/0.7572, allocations: 1.343 MB / 0.6514 GB, free: 3.656 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001333/0.7585, allocations: 0.9784 MB / 0.6523 GB, free: 2.676 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.594e-06/0.7585, allocations: 4 kB / 0.6523 GB, free: 2.672 MB / 426.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.003588/0.7621, allocations: 2.564 MB / 0.6548 GB, free: 72 kB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.411e-05/0.7621, allocations: 16 kB / 0.6548 GB, free: 56 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.826e-05/0.7622, allocations: 20 kB / 0.6549 GB, free: 36 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003494/0.7625, allocations: 142.5 kB / 0.655 GB, free: 15.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001591/0.7641, allocations: 471.3 kB / 0.6555 GB, free: 15.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00221/0.7664, allocations: 3.122 MB / 0.6585 GB, free: 12.04 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001417/0.7678, allocations: 120 kB / 0.6586 GB, free: 11.92 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001292/0.7679, allocations: 84 kB / 0.6587 GB, free: 11.84 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * 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 (229): * Single equations (assignments): 226 * 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%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001838/0.7698, allocations: 1.048 MB / 0.6597 GB, free: 10.78 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003261/0.7701, allocations: 225.1 kB / 0.6599 GB, free: 10.56 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00378/0.7739, allocations: 2.295 MB / 0.6622 GB, free: 8.203 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-05/0.7739, allocations: 15.95 kB / 0.6622 GB, free: 8.188 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.823e-05/0.7739, allocations: 4 kB / 0.6622 GB, free: 8.184 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.415e-05/0.774, allocations: 7.969 kB / 0.6622 GB, free: 8.176 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01029/0.7843, allocations: 5.443 MB / 0.6675 GB, free: 2.582 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-05/0.7843, allocations: 4 kB / 0.6675 GB, free: 2.578 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001129/0.7854, allocations: 251.6 kB / 0.6678 GB, free: 2.332 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007325/0.7862, allocations: 275.5 kB / 0.668 GB, free: 2.051 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001057/0.7863, allocations: 32 kB / 0.6681 GB, free: 2.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2244/1.011, allocations: 7.202 MB / 0.6751 GB, free: 79.06 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.905e-06/1.011, allocations: 6.562 kB / 0.6751 GB, free: 79.06 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005467/1.016, allocations: 3.559 MB / 0.6786 GB, free: 78.3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001013/1.017, allocations: 474.4 kB / 0.679 GB, free: 78.21 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002315/1.018, allocations: 31.11 kB / 0.6791 GB, free: 78.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/1.019, allocations: 81.45 kB / 0.6791 GB, free: 78.21 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000171/1.019, allocations: 105 kB / 0.6792 GB, free: 78.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.409e-05/1.019, allocations: 45.41 kB / 0.6793 GB, free: 78.21 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00178/1.021, allocations: 1.412 MB / 0.6807 GB, free: 78.06 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.021, allocations: 0 / 0.6807 GB, free: 78.06 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002018/1.023, allocations: 0.632 MB / 0.6813 GB, free: 78.06 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (121): * Single equations (assignments): 117 * 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%) 5,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006164/1.023, allocations: 0.4915 MB / 0.6817 GB, free: 77.96 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002732/1.026, allocations: 2.161 MB / 0.6839 GB, free: 77.61 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/1.026, allocations: 6.438 kB / 0.6839 GB, free: 77.61 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001583/1.028, allocations: 1.426 MB / 0.6853 GB, free: 77.16 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002351/1.03, allocations: 0.5136 MB / 0.6858 GB, free: 77.14 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009445/1.039, allocations: 7.422 MB / 0.693 GB, free: 73.96 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001855/1.041, allocations: 2.49 MB / 0.6954 GB, free: 73.19 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002015/1.043, allocations: 0.5004 MB / 0.6959 GB, free: 73.12 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004588/1.044, allocations: 160.9 kB / 0.6961 GB, free: 73.12 MB / 442.7 MB Notification: Performance of SimCode: time 1.112e-06/1.044, allocations: 2.625 kB / 0.6961 GB, free: 73.12 MB / 442.7 MB Notification: Performance of Templates: time 0.04543/1.089, allocations: 30.9 MB / 0.7263 GB, free: 71.41 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches