Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001558/0.001558, allocations: 174.2 kB / 16.72 MB, free: 4.93 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.657/1.657, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007894/0.0007896, allocations: 73.45 kB / 271.2 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003198/0.00032, allocations: 16 kB / 327.5 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.247/0.2473, allocations: 47.57 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03016/0.2776, allocations: 36.66 MB / 411.8 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02348/0.3011, allocations: 10.29 MB / 422.1 MB, free: 1.637 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01063/0.3118, allocations: 263 kB / 422.3 MB, free: 1.379 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008292/0.3201, allocations: 1.786 MB / 424.1 MB, free: 15.58 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01525/0.3354, allocations: 3.173 MB / 427.3 MB, free: 12.4 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008232/0.3437, allocations: 1.598 MB / 428.9 MB, free: 10.81 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.02356/0.3673, allocations: 14.9 MB / 443.8 MB, free: 11.86 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05144/0.4188, allocations: 24.07 MB / 467.8 MB, free: 3.625 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01112/0.4299, allocations: 5.127 MB / 473 MB, free: 14.48 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01182/0.4418, allocations: 6.113 MB / 479.1 MB, free: 8.344 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003865/0.4457, allocations: 0.793 MB / 479.9 MB, free: 7.551 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006528/0.4522, allocations: 1.183 MB / 481.1 MB, free: 6.367 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00543/0.4577, allocations: 2.674 MB / 483.7 MB, free: 3.684 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01368/0.4714, allocations: 6.134 MB / 489.9 MB, free: 13.51 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.4385/0.9099, allocations: 22.57 MB / 0.5004 GB, free: 37.9 MB / 378.8 MB Notification: Performance of FrontEnd - DAE generated: time 9.638e-06/0.91, allocations: 0 / 0.5004 GB, free: 37.9 MB / 378.8 MB Notification: Performance of FrontEnd: time 2.284e-06/0.91, allocations: 3.484 kB / 0.5004 GB, free: 37.9 MB / 378.8 MB Notification: Performance of Transformations before backend: time 0.0009936/0.911, allocations: 0 / 0.5004 GB, free: 37.9 MB / 378.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.03914/0.9501, allocations: 13.2 MB / 0.5133 GB, free: 31.39 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.404e-05/0.9502, allocations: 13.62 kB / 0.5133 GB, free: 31.39 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04683/0.9971, allocations: 9.21 MB / 0.5223 GB, free: 27.82 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01661/1.014, allocations: 7.678 MB / 0.5298 GB, free: 25.71 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001075/1.015, allocations: 0.9756 MB / 0.5308 GB, free: 25.68 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006599/1.021, allocations: 1.276 MB / 0.532 GB, free: 25.61 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05736/1.079, allocations: 20.41 MB / 0.552 GB, free: 12.53 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006364/1.08, allocations: 24.52 kB / 0.552 GB, free: 12.51 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006365/1.086, allocations: 0.5293 MB / 0.5525 GB, free: 12.4 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009739/1.087, allocations: 0.7499 MB / 0.5532 GB, free: 11.7 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04288/1.13, allocations: 19.13 MB / 0.5719 GB, free: 13.64 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1428/1.273, allocations: 65.25 MB / 0.6356 GB, free: 11.72 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2335/1.506, allocations: 57.22 MB / 0.6915 GB, free: 130.8 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00689/1.513, allocations: 4.184 MB / 0.6956 GB, free: 130.8 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02032/1.533, allocations: 11.68 MB / 0.707 GB, free: 126 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.774e-05/1.534, allocations: 71.31 kB / 0.7071 GB, free: 125.9 MB / 474.8 MB Notification: Performance of pre-optimization done (n=361): time 5.681e-06/1.534, allocations: 0 / 0.7071 GB, free: 125.9 MB / 474.8 MB Notification: Performance of matching and sorting (n=403): time 0.0349/1.568, allocations: 17.84 MB / 0.7245 GB, free: 118.3 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.993e-05/1.569, allocations: 89.64 kB / 0.7246 GB, free: 118.3 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01025/1.579, allocations: 5.641 MB / 0.7301 GB, free: 116.2 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008187/1.58, allocations: 94.11 kB / 0.7302 GB, free: 116.1 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003613/1.583, allocations: 6.052 MB / 0.7361 GB, free: 111.5 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001855/1.585, allocations: 1.416 MB / 0.7375 GB, free: 110.5 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009093/1.586, allocations: 165.6 kB / 0.7376 GB, free: 110.3 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0004758/1.587, allocations: 0.625 MB / 0.7383 GB, free: 109.9 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004624/1.591, allocations: 3.113 MB / 0.7413 GB, free: 107.7 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006043/1.597, allocations: 6.861 MB / 0.748 GB, free: 99.66 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01092/1.608, allocations: 10.78 MB / 0.7585 GB, free: 87.8 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001501/1.608, allocations: 36 kB / 0.7586 GB, free: 87.77 MB / 474.8 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.02102/1.629, allocations: 10.97 MB / 0.7693 GB, free: 77.48 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001653/1.63, allocations: 60 kB / 0.7693 GB, free: 77.42 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002415/1.63, allocations: 132 kB / 0.7694 GB, free: 77.29 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002533/1.632, allocations: 0.9728 MB / 0.7704 GB, free: 76.3 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00639/1.639, allocations: 1.852 MB / 0.7722 GB, free: 74.45 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01007/1.649, allocations: 9.552 MB / 0.7815 GB, free: 64.5 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006756/1.656, allocations: 451.1 kB / 0.782 GB, free: 64.06 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001594/1.657, allocations: 431.7 kB / 0.7824 GB, free: 63.64 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 (958): * Single equations (assignments): 953 * 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: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01058/1.668, allocations: 4.521 MB / 0.7868 GB, free: 59.11 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001939/1.67, allocations: 0.5633 MB / 0.7873 GB, free: 58.54 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01314/1.683, allocations: 6.697 MB / 0.7939 GB, free: 51.79 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.542e-05/1.683, allocations: 40 kB / 0.7939 GB, free: 51.75 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.271e-05/1.683, allocations: 8 kB / 0.7939 GB, free: 51.75 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.016e-05/1.683, allocations: 19.92 kB / 0.7939 GB, free: 51.73 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03261/1.716, allocations: 16.47 MB / 0.81 GB, free: 35.21 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.91e-05/1.716, allocations: 8.438 kB / 0.81 GB, free: 35.21 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003347/1.719, allocations: 0.7762 MB / 0.8108 GB, free: 34.43 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002111/1.721, allocations: 0.7885 MB / 0.8116 GB, free: 33.62 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005398/1.722, allocations: 95.91 kB / 0.8117 GB, free: 33.53 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008715/1.731, allocations: 8.65 MB / 0.8201 GB, free: 24.48 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/1.731, allocations: 7.938 kB / 0.8201 GB, free: 24.47 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01539/1.746, allocations: 9.784 MB / 0.8297 GB, free: 14.57 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003316/1.75, allocations: 1.146 MB / 0.8308 GB, free: 13.39 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001684/1.751, allocations: 76 kB / 0.8309 GB, free: 13.32 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003393/1.755, allocations: 231.7 kB / 0.8311 GB, free: 13.09 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007029/1.755, allocations: 278.8 kB / 0.8313 GB, free: 12.82 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004282/1.756, allocations: 116 kB / 0.8315 GB, free: 12.71 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.007048/1.763, allocations: 3.706 MB / 0.8351 GB, free: 9.035 MB / 474.8 MB Notification: Performance of sort global known variables: time 5.01e-07/1.763, allocations: 4 kB / 0.8351 GB, free: 9.031 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01003/1.773, allocations: 2.042 MB / 0.8371 GB, free: 6.992 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.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 (384): * Single equations (assignments): 379 * 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: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008652/1.774, allocations: 265 kB / 0.8373 GB, free: 6.73 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.209/1.983, allocations: 8.185 MB / 0.8453 GB, free: 161.6 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.31e-05/1.983, allocations: 0 / 0.8453 GB, free: 161.6 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006167/1.989, allocations: 3.611 MB / 0.8488 GB, free: 160.9 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01056/2, allocations: 1.323 MB / 0.8501 GB, free: 160.8 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04527/2.045, allocations: 25.5 MB / 0.875 GB, free: 148.1 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009766/2.055, allocations: 7.468 MB / 0.8823 GB, free: 145.5 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002122/2.057, allocations: 0.5085 MB / 0.8828 GB, free: 145.1 MB / 474.8 MB Notification: Performance of SimCode: time 8.92e-07/2.057, allocations: 4 kB / 0.8828 GB, free: 145.1 MB / 474.8 MB Notification: Performance of Templates: time 0.996/3.053, allocations: 487.8 MB / 1.359 GB, free: 156.1 MB / 490.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches