Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.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.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_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.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.001639/0.001639, allocations: 177.6 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 221.5 MB / 230.3 MB, free: 7.551 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008801/0.0008799, allocations: 92.67 kB / 281.2 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.864e-05/1.873e-05, allocations: 7.984 kB / 337.1 MB, free: 9.984 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1208, allocations: 50.42 MB / 387.5 MB, free: 7.531 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4933/0.6141, allocations: 163.2 MB / 0.5378 GB, free: 11.41 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002804/0.6145, allocations: 103.9 kB / 0.5379 GB, free: 11.31 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.711/2.326, allocations: 381.9 MB / 0.9109 GB, free: 44.05 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.634e-06/2.326, allocations: 0 / 0.9109 GB, free: 44.05 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0009968/2.327, allocations: 289.1 kB / 0.9111 GB, free: 44.02 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.0399/2.367, allocations: 11.01 MB / 0.9219 GB, free: 40.5 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/2.367, allocations: 11.22 kB / 0.9219 GB, free: 40.5 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02538/2.392, allocations: 4.477 MB / 0.9263 GB, free: 39.82 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02623/2.419, allocations: 9.533 MB / 0.9356 GB, free: 38.62 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001117/2.42, allocations: 395.1 kB / 0.936 GB, free: 38.62 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007041/2.427, allocations: 0.7073 MB / 0.9367 GB, free: 38.61 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03632/2.463, allocations: 14.14 MB / 0.9505 GB, free: 38.56 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0504/2.514, allocations: 16.68 MB / 0.9668 GB, free: 36.82 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007115/2.515, allocations: 24.31 kB / 0.9668 GB, free: 36.81 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004319/2.519, allocations: 15.89 kB / 0.9668 GB, free: 36.81 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009481/2.52, allocations: 0.8196 MB / 0.9676 GB, free: 36.64 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1186/2.638, allocations: 59.7 MB / 1.026 GB, free: 14.55 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4253/3.064, allocations: 32.78 MB / 1.058 GB, free: 44.7 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007641/3.071, allocations: 3.916 MB / 1.062 GB, free: 44.64 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02037/3.092, allocations: 9.011 MB / 1.071 GB, free: 44.01 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.631e-05/3.092, allocations: 73.27 kB / 1.071 GB, free: 43.96 MB / 490.7 MB Notification: Performance of pre-optimization done (n=364): time 5.991e-06/3.092, allocations: 3.984 kB / 1.071 GB, free: 43.96 MB / 490.7 MB Notification: Performance of matching and sorting (n=408): time 0.03524/3.127, allocations: 16.07 MB / 1.086 GB, free: 42.12 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.686e-05/3.127, allocations: 96.14 kB / 1.086 GB, free: 42.06 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007359/3.135, allocations: 3.936 MB / 1.09 GB, free: 41.71 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008948/3.136, allocations: 25.7 kB / 1.09 GB, free: 41.68 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003353/3.139, allocations: 5.626 MB / 1.096 GB, free: 38.67 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001811/3.141, allocations: 1.359 MB / 1.097 GB, free: 37.8 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003561/3.141, allocations: 0 / 1.097 GB, free: 37.8 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003641/3.142, allocations: 0.5881 MB / 1.098 GB, free: 37.48 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003679/3.145, allocations: 2.859 MB / 1.1 GB, free: 37.46 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004827/3.15, allocations: 5.916 MB / 1.106 GB, free: 33.63 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00757/3.158, allocations: 4.91 MB / 1.111 GB, free: 33.57 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.564e-05/3.158, allocations: 29.91 kB / 1.111 GB, free: 33.57 MB / 490.7 MB Notification: Performance of matching and sorting (n=900) (initialization): time 0.01817/3.176, allocations: 10.06 MB / 1.121 GB, free: 33.11 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.385e-05/3.176, allocations: 48.28 kB / 1.121 GB, free: 33.11 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001911/3.176, allocations: 107.7 kB / 1.121 GB, free: 33.11 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002493/3.179, allocations: 1.015 MB / 1.122 GB, free: 33.07 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006225/3.185, allocations: 1.657 MB / 1.124 GB, free: 33.07 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01276/3.198, allocations: 9.916 MB / 1.133 GB, free: 29.23 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007987/3.206, allocations: 325.1 kB / 1.134 GB, free: 29.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002234/3.208, allocations: 367.2 kB / 1.134 GB, free: 29.2 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 480 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (842): * Single equations (assignments): 836 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,62.5%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003242/3.211, allocations: 380.5 kB / 1.134 GB, free: 29.03 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002314/3.214, allocations: 0.5125 MB / 1.135 GB, free: 28.76 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0152/3.229, allocations: 7.128 MB / 1.142 GB, free: 27.75 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.84e-05/3.229, allocations: 40.72 kB / 1.142 GB, free: 27.75 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.899e-05/3.229, allocations: 11.92 kB / 1.142 GB, free: 27.75 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.453e-05/3.229, allocations: 22.92 kB / 1.142 GB, free: 27.75 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03749/3.267, allocations: 15.17 MB / 1.157 GB, free: 21.81 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.72e-05/3.267, allocations: 3.875 kB / 1.157 GB, free: 21.81 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003673/3.27, allocations: 0.7835 MB / 1.157 GB, free: 21.79 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002303/3.273, allocations: 0.8649 MB / 1.158 GB, free: 21.56 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005482/3.273, allocations: 36.81 kB / 1.158 GB, free: 21.55 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009559/3.283, allocations: 9.067 MB / 1.167 GB, free: 15.36 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/3.283, allocations: 7.766 kB / 1.167 GB, free: 15.35 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01668/3.3, allocations: 10.83 MB / 1.178 GB, free: 10.39 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004037/3.304, allocations: 1.089 MB / 1.179 GB, free: 9.734 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002425/3.306, allocations: 7.891 kB / 1.179 GB, free: 9.73 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004831/3.311, allocations: 213.2 kB / 1.179 GB, free: 9.727 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001051/3.312, allocations: 270.5 kB / 1.179 GB, free: 9.691 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003467/3.312, allocations: 122.1 kB / 1.179 GB, free: 9.66 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005737/3.318, allocations: 2.84 MB / 1.182 GB, free: 8.527 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.91e-07/3.318, allocations: 0 / 1.182 GB, free: 8.527 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01222/3.33, allocations: 1.775 MB / 1.184 GB, free: 8.305 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (378): * Single equations (assignments): 372 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,(8,64.1%) 46,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00174/3.332, allocations: 0.584 MB / 1.184 GB, free: 7.859 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01209/3.344, allocations: 7.598 MB / 1.192 GB, free: 0.9531 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.198e-05/3.344, allocations: 0 / 1.192 GB, free: 0.9531 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01241/3.357, allocations: 4.069 MB / 1.196 GB, free: 14.68 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008575/3.365, allocations: 1.068 MB / 1.197 GB, free: 13.88 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0469/3.412, allocations: 17.07 MB / 1.214 GB, free: 14.62 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0191/3.431, allocations: 7.624 MB / 1.221 GB, free: 8.934 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.009667/3.441, allocations: 2.171 MB / 1.223 GB, free: 7.527 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002608/3.444, allocations: 405.5 kB / 1.224 GB, free: 7.152 MB / 0.5105 GB Notification: Performance of SimCode: time 1.283e-06/3.444, allocations: 4 kB / 1.224 GB, free: 7.148 MB / 0.5105 GB Notification: Performance of Templates: time 0.4774/3.921, allocations: 69.52 MB / 1.291 GB, free: 100.5 MB / 0.5261 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.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/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches