Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 180.5 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.244/1.244, allocations: 223.2 MB / 240.3 MB, free: 11.85 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008297/0.0008297, allocations: 104.2 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002966/0.0002966, allocations: 7.938 kB / 351.1 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.279/0.2793, allocations: 50.4 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4007/0.6801, allocations: 116.8 MB / 0.5062 GB, free: 49.36 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002249/0.6804, allocations: 102.2 kB / 0.5063 GB, free: 49.36 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1691/0.8495, allocations: 75.31 MB / 0.5798 GB, free: 23.78 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.8495, allocations: 0 / 0.5798 GB, free: 23.78 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002834/0.8498, allocations: 83.94 kB / 0.5799 GB, free: 23.7 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.009571/0.8594, allocations: 3.504 MB / 0.5833 GB, free: 20.12 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.8595, allocations: 12.03 kB / 0.5833 GB, free: 20.11 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003133/0.8626, allocations: 0.5852 MB / 0.5839 GB, free: 19.52 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007978/0.8706, allocations: 3.141 MB / 0.587 GB, free: 16.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002008/0.8708, allocations: 234.3 kB / 0.5872 GB, free: 16.09 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00106/0.8719, allocations: 315.8 kB / 0.5875 GB, free: 15.78 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009115/0.881, allocations: 3.984 MB / 0.5914 GB, free: 11.65 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000136/0.8812, allocations: 7.938 kB / 0.5914 GB, free: 11.64 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005543/0.8818, allocations: 136 kB / 0.5915 GB, free: 11.51 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001431/0.8819, allocations: 142.2 kB / 0.5917 GB, free: 11.37 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006337/0.8883, allocations: 3.175 MB / 0.5948 GB, free: 8.188 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01965/0.908, allocations: 13.43 MB / 0.6079 GB, free: 10.3 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004235/0.9122, allocations: 3.992 MB / 0.6118 GB, free: 5.801 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004878/0.9172, allocations: 2.712 MB / 0.6144 GB, free: 3 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.592e-05/0.9172, allocations: 43.56 kB / 0.6145 GB, free: 2.949 MB / 394.7 MB Notification: Performance of pre-optimization done (n=113): time 3.957e-06/0.9172, allocations: 0 / 0.6145 GB, free: 2.949 MB / 394.7 MB Notification: Performance of matching and sorting (n=147): time 0.01167/0.9289, allocations: 6.103 MB / 0.6204 GB, free: 12.75 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.849e-05/0.929, allocations: 68.72 kB / 0.6205 GB, free: 12.67 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002624/0.9316, allocations: 1.657 MB / 0.6221 GB, free: 10.98 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001128/0.9318, allocations: 49.7 kB / 0.6221 GB, free: 10.92 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00103/0.9328, allocations: 1.501 MB / 0.6236 GB, free: 9.402 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004194/0.9332, allocations: 0.4967 MB / 0.6241 GB, free: 8.898 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.538e-05/0.9333, allocations: 40 kB / 0.6241 GB, free: 8.859 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.9335, allocations: 373.9 kB / 0.6245 GB, free: 8.488 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001224/0.9347, allocations: 0.7809 MB / 0.6253 GB, free: 7.707 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001556/0.9363, allocations: 1.356 MB / 0.6266 GB, free: 6.094 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00148/0.9378, allocations: 1.018 MB / 0.6276 GB, free: 5.078 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.039e-05/0.9378, allocations: 8 kB / 0.6276 GB, free: 5.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.004013/0.9418, allocations: 2.489 MB / 0.63 GB, free: 2.562 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.737e-05/0.9419, allocations: 18.75 kB / 0.63 GB, free: 2.547 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.835e-05/0.9419, allocations: 20 kB / 0.63 GB, free: 2.527 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003528/0.9423, allocations: 118.5 kB / 0.6302 GB, free: 2.402 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001858/0.9441, allocations: 487.4 kB / 0.6306 GB, free: 1.926 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001013/0.9452, allocations: 1.315 MB / 0.6319 GB, free: 488 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00167/0.9469, allocations: 115.8 kB / 0.632 GB, free: 372 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/0.947, allocations: 80 kB / 0.6321 GB, free: 292 kB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 83 * 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 (233): * Single equations (assignments): 230 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002183/0.9492, allocations: 0.9814 MB / 0.6331 GB, free: 15.29 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004287/0.9496, allocations: 205.5 kB / 0.6333 GB, free: 15.09 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003592/0.9532, allocations: 2.016 MB / 0.6352 GB, free: 13.05 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.4e-05/0.9533, allocations: 16 kB / 0.6352 GB, free: 13.04 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.9533, allocations: 0 / 0.6352 GB, free: 13.04 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.517e-05/0.9533, allocations: 7.969 kB / 0.6352 GB, free: 13.03 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008559/0.9619, allocations: 5.102 MB / 0.6402 GB, free: 7.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/0.9619, allocations: 0 / 0.6402 GB, free: 7.82 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00139/0.9633, allocations: 323.8 kB / 0.6405 GB, free: 7.504 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002908/0.9636, allocations: 98.45 kB / 0.6406 GB, free: 7.398 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.893e-05/0.9637, allocations: 31.98 kB / 0.6407 GB, free: 7.367 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008692/0.9646, allocations: 1.284 MB / 0.6419 GB, free: 5.953 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.9646, allocations: 4 kB / 0.6419 GB, free: 5.949 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004495/0.9691, allocations: 3.294 MB / 0.6451 GB, free: 2.531 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001083/0.9702, allocations: 470.4 kB / 0.6456 GB, free: 2.051 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002551/0.9704, allocations: 28 kB / 0.6456 GB, free: 2.023 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/0.9715, allocations: 87.89 kB / 0.6457 GB, free: 1.938 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001554/0.9716, allocations: 85.14 kB / 0.6458 GB, free: 1.852 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.628e-05/0.9717, allocations: 44 kB / 0.6458 GB, free: 1.809 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002/0.9737, allocations: 1.266 MB / 0.6471 GB, free: 0.5195 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.9738, allocations: 3.938 kB / 0.6471 GB, free: 0.5156 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00189/0.9756, allocations: 0.5859 MB / 0.6476 GB, free: 15.93 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006804/0.9763, allocations: 475.3 kB / 0.6481 GB, free: 15.46 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003313/0.9797, allocations: 2.23 MB / 0.6503 GB, free: 13.18 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.9797, allocations: 1.875 kB / 0.6503 GB, free: 13.18 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001641/0.9813, allocations: 1.209 MB / 0.6514 GB, free: 11.91 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002331/0.9837, allocations: 486.9 kB / 0.6519 GB, free: 11.44 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01035/0.994, allocations: 6.746 MB / 0.6585 GB, free: 4.637 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002082/0.9962, allocations: 2.33 MB / 0.6608 GB, free: 2.273 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002016/0.9982, allocations: 0.5172 MB / 0.6613 GB, free: 1.754 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004658/0.9987, allocations: 151.4 kB / 0.6614 GB, free: 1.605 MB / 442.7 MB Notification: Performance of SimCode: time 8.31e-07/0.9987, allocations: 0 / 0.6614 GB, free: 1.605 MB / 442.7 MB Notification: Performance of Templates: time 0.242/1.241, allocations: 28.05 MB / 0.6888 GB, free: 93.83 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches